linux/drivers/mtd/ubi
Brian Norris 054cf47d81 UBI: fix check for "too many bytes"
[ Upstream commit 299d0c5b27 ]

The comparison from the previous line seems to have been erroneously
(partially) copied-and-pasted onto the next. The second line should be
checking req.bytes, not req.lnum.

Coverity CID #139400

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
[rw: Fixed comparison]
Signed-off-by: Richard Weinberger <richard@nod.at>

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-05-17 19:12:11 -04:00
..
attach.c UBI: account for bitflips in both the VID header and data 2015-05-17 19:12:10 -04:00
block.c UBI: block: Add support for the UBI_VOLUME_UPDATED notification 2014-09-16 19:02:04 +03:00
build.c UBI: R/O block driver on top of UBI volumes 2014-02-28 16:29:48 +02:00
cdev.c UBI: fix check for "too many bytes" 2015-05-17 19:12:11 -04:00
debug.c UBI: embed ubi_debug_info field in ubi_device struct 2012-12-10 13:38:59 +02:00
debug.h mtd: rename random32() to prandom_u32() 2013-02-04 09:26:28 +02:00
eba.c UBI: fix out of bounds write 2015-05-17 19:12:10 -04:00
fastmap.c UBI: Fastmap: Calc fastmap size correctly 2014-10-03 17:33:28 +03:00
gluebi.c UBI: gluebi: rename misleading variables 2012-11-30 13:54:41 +02:00
io.c UBI: avoid program operation on NOR flash after erasure interrupted 2014-01-09 18:25:38 +02:00
kapi.c UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
Kconfig UBI: block: Add CONFIG_BLOCK dependency 2014-03-04 14:49:53 +02:00
Makefile UBI: R/O block driver on top of UBI volumes 2014-02-28 16:29:48 +02:00
misc.c UBI: comply with coding style 2012-09-04 09:39:01 +03:00
ubi-media.h UBI: Add fastmap on-flash data structures 2012-10-03 12:29:37 +03:00
ubi.h UBI: wl: Rename cancel flag to shutdown 2014-09-26 13:43:32 +03:00
upd.c UBI: Fix invalid vfree() 2015-01-16 06:59:47 -08:00
vmt.c UBI: introduce helpers dbg_chk_{io, gen} 2012-12-10 13:38:59 +02:00
vtbl.c UBI: init_volumes: Ignore volumes with no LEBs 2014-07-19 09:53:52 +03:00
wl.c UBI: initialize LEB number variable 2015-05-17 19:12:10 -04:00