diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-10-12 09:34:29 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-19 10:35:51 -0700 |
commit | 75d29713b792da4782cadfaa87e802183440694e (patch) | |
tree | 3d279ed95896399f5b220ac0c554d632432de89a /drivers/dax/pmem.c | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) |
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/dax/pmem.c')
0 files changed, 0 insertions, 0 deletions