commit | 75d29713b792da4782cadfaa87e802183440694e | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Oct 12 09:34:29 2016 +0300 |
committer | Dan Williams <dan.j.williams@intel.com> | Wed Oct 19 10:35:51 2016 -0700 |
tree | 3d279ed95896399f5b220ac0c554d632432de89a | |
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>