summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-03-31 17:21:18 +0200
committerPaul Moore <paul@paul-moore.com>2017-03-31 21:16:18 +0200
commitcae303df3f379f04ce7efadb2e30de460918b302 (patch)
tree774a804b281390db6ce535ef5a1532db44faaff9 /block/blk.h
parentselinux: Remove unnecessary check of array base in selinux_set_mapping() (diff)
downloadlinux-cae303df3f379f04ce7efadb2e30de460918b302.tar.xz
linux-cae303df3f379f04ce7efadb2e30de460918b302.zip
selinux: Fix an uninitialized variable bug
We removed this initialization as a cleanup but it is probably required. The concern is that "nel" can be zero. I'm not an expert on SELinux code but I think it looks possible to write an SELinux policy which triggers this bug. GCC doesn't catch this, but my static checker does. Fixes: 9c312e79d6af ("selinux: Delete an unnecessary variable initialisation in range_read()") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions