[PATCH 4.9 07/51] libnvdimm/namespace: Fix a potential NULL pointer dereference