Re: [PATCH 1/1] nvdimm: use the right length of "pmem"

2016-10-30 Thread Nicolas Iooss
On 30/10/16 16:50, Dan Williams wrote: > On Sat, Oct 29, 2016 at 4:28 AM, Nicolas Iooss > wrote: >> 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. >> >> Fixes: 16660eaea0cc ("libnvdimm, namespace: update l

Re: [PATCH 1/1] nvdimm: use the right length of "pmem"

2016-10-30 Thread Dan Williams
On Sat, Oct 29, 2016 at 4:28 AM, Nicolas Iooss wrote: > 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. > > Fixes: 16660eaea0cc ("libnvdimm, namespace: update label implementation > for multi-pmem") > Signed

[PATCH 1/1] nvdimm: use the right length of "pmem"

2016-10-29 Thread Nicolas Iooss
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. Fixes: 16660eaea0cc ("libnvdimm, namespace: update label implementation for multi-pmem") Signed-off-by: Nicolas Iooss --- drivers/nvdimm/label.c | 2 +- 1 file