[PATCH 4.9 116/125] libnvdimm: Out of bounds read in __nd_ioctl()