]> git.baikalelectronics.ru Git - kernel.git/commit
nvdimm: use the right length of "pmem"
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sat, 29 Oct 2016 11:28:52 +0000 (13:28 +0200)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Nov 2016 04:37:42 +0000 (20:37 -0800)
commit951bc1ba6974861b52b41f67ac0c09d5c34b0ea3
tree82353ac815c7fd2990b8a10143fa861ff764f0de
parent24bd2fb7563fef14eb5d4d721b3ec7d1a0f3c235
nvdimm: use the right length of "pmem"

In order to test that the name of a resource begins with "pmem", call
strncmp() with 4 as length instead of 3 to match the whole prefix.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/label.c