aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2016-10-12 06:34:29 +0000
committerDan Williams <[email protected]>2016-10-19 17:35:51 +0000
commit75d29713b792da4782cadfaa87e802183440694e (patch)
tree3d279ed95896399f5b220ac0c554d632432de89a /scripts/gcc-plugins/cyc_complexity_plugin.c
parentLinux 4.9-rc1 (diff)
downloadkernel-75d29713b792da4782cadfaa87e802183440694e.tar.gz
kernel-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 <[email protected]> Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions