forked from Minki/linux
a48faebe65
There is an off-by-one array check that can lead to a out-of-bounds
write to devices->info[i]. Fix this by checking by using >= rather
than > for the size check. Also replace hard-coded array size limit
with ARRAY_SIZE on the array.
Addresses-Coverity: ("Out-of-bounds write")
Fixes:
|
||
---|---|---|
.. | ||
core.c | ||
Kconfig | ||
Makefile | ||
pblk-cache.c | ||
pblk-core.c | ||
pblk-gc.c | ||
pblk-init.c | ||
pblk-map.c | ||
pblk-rb.c | ||
pblk-read.c | ||
pblk-recovery.c | ||
pblk-rl.c | ||
pblk-sysfs.c | ||
pblk-trace.h | ||
pblk-write.c | ||
pblk.h |