aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/pmem.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-10-12 09:34:29 +0300
committerDan Williams <dan.j.williams@intel.com>2016-10-19 10:35:51 -0700
commit75d29713b792da4782cadfaa87e802183440694e (patch)
tree3d279ed95896399f5b220ac0c554d632432de89a /drivers/nvdimm/pmem.c
parentLinux 4.9-rc1 (diff)
downloadlinux-dev-75d29713b792da4782cadfaa87e802183440694e.tar.xz
linux-dev-75d29713b792da4782cadfaa87e802183440694e.zip
libnvdimm, namespace: potential NULL deref on allocation error
If the kcalloc() fails then "devs" can be NULL and we dereference it checking "devs[i]". Fixes: 1b40e09a1232 ('libnvdimm: blk labels and namespace instantiation') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/pmem.c')
0 files changed, 0 insertions, 0 deletions