Skip to content
Commit 2d9a0274 authored by Nicolas Iooss's avatar Nicolas Iooss Committed by Dan Williams
Browse files

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: default avatarNicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 82bf1037
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment