https://github.com/torvalds/linux
Revision e0702d90b79d430b0ccc276ead4f88440bb51352 authored by Dan Carpenter on 19 August 2019, 09:58:14 UTC, committed by Mike Snitzer on 21 August 2019, 15:29:30 UTC
This function is supposed to return error pointers so it matches the
dmz_get_rnd_zone_for_reclaim() function.  The current code could lead to
a NULL dereference in dmz_do_reclaim()

Fixes: b234c6d7a703 ("dm zoned: improve error handling in reclaim")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent 08c04c8
History
Tip revision: e0702d90b79d430b0ccc276ead4f88440bb51352 authored by Dan Carpenter on 19 August 2019, 09:58:14 UTC
dm zoned: fix potential NULL dereference in dmz_do_reclaim()
Tip revision: e0702d9
File Mode Size
api.rst -rw-r--r-- 11.9 KB
arkfb.rst -rw-r--r-- 2.0 KB
aty128fb.rst -rw-r--r-- 2.2 KB
cirrusfb.rst -rw-r--r-- 2.0 KB
cmap_xfbdev.rst -rw-r--r-- 1.9 KB
deferred_io.rst -rw-r--r-- 3.0 KB
efifb.rst -rw-r--r-- 943 bytes
ep93xx-fb.rst -rw-r--r-- 4.5 KB
fbcon.rst -rw-r--r-- 12.2 KB
framebuffer.rst -rw-r--r-- 13.9 KB
gxfb.rst -rw-r--r-- 1.3 KB
index.rst -rw-r--r-- 586 bytes
intel810.rst -rw-r--r-- 8.4 KB
intelfb.rst -rw-r--r-- 3.8 KB
internals.rst -rw-r--r-- 2.7 KB
lxfb.rst -rw-r--r-- 1.3 KB
matroxfb.rst -rw-r--r-- 19.7 KB
metronomefb.rst -rw-r--r-- 2.0 KB
modedb.rst -rw-r--r-- 7.3 KB
pvr2fb.rst -rw-r--r-- 2.2 KB
pxafb.rst -rw-r--r-- 4.6 KB
s3fb.rst -rw-r--r-- 2.6 KB
sa1100fb.rst -rw-r--r-- 1.4 KB
sh7760fb.rst -rw-r--r-- 4.3 KB
sisfb.rst -rw-r--r-- 6.5 KB
sm501.rst -rw-r--r-- 316 bytes
sm712fb.rst -rw-r--r-- 858 bytes
sstfb.rst -rw-r--r-- 7.0 KB
tgafb.rst -rw-r--r-- 2.5 KB
tridentfb.rst -rw-r--r-- 2.8 KB
udlfb.rst -rw-r--r-- 7.3 KB
uvesafb.rst -rw-r--r-- 7.2 KB
vesafb.rst -rw-r--r-- 6.6 KB
viafb.modes -rw-r--r-- 30.8 KB
viafb.rst -rw-r--r-- 8.9 KB
vt8623fb.rst -rw-r--r-- 1.9 KB

back to top