android_kernel_motorola_sm6375/drivers/mtd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
YueHaibing 771fd0b2e8 mtd: sharpslpart: Fix unsigned comparison to zero
commit f33113b542219448fa02d77ca1c6f4265bd7f130 upstream.

The unsigned variable log_num is being assigned a return value
from the call to sharpsl_nand_get_logical_num that can return
-EINVAL.

Detected using Coccinelle:
./drivers/mtd/parsers/sharpslpart.c:207:6-13: WARNING: Unsigned expression compared with zero: log_num > 0

Fixes: 8a4580e4d2 ("mtd: sharpslpart: Add sharpslpart partition parser")
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-02-14 16:34:18 -05:00
..
chips mtd: cfi_cmdset_0002: fix delayed error detection on HyperFlash 2020-01-23 08:22:57 +01:00
devices mtd: devices: fix mchp23k256 read and write 2020-01-23 08:22:57 +01:00
hyperbus mtd: hyperbus: fix dependency and build error 2019-08-29 14:31:23 +02:00
lpddr
maps mtd: pismo: Simplify getting the adapter of a client 2019-09-15 23:50:39 +02:00
nand mtd: onenand_base: Adjust indentation in onenand_read_ops_nolock 2020-02-14 16:34:18 -05:00
parsers mtd: sharpslpart: Fix unsigned comparison to zero 2020-02-14 16:34:18 -05:00
spi-nor mtd: spi-nor: Split mt25qu512a (n25q512a) entry into two 2020-02-11 04:35:45 -08:00
tests
ubi ubi: Fix an error pointer dereference in error handling code 2020-02-11 04:35:47 -08:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig mtd: parsers: Move CMDLINE parser 2019-09-15 23:50:50 +02:00
Makefile mtd: parsers: Move CMDLINE parser 2019-09-15 23:50:50 +02:00
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h mtd: Provide fs_context-aware mount_mtd() replacement 2019-09-05 14:34:23 -04:00
mtdoops.c
mtdpart.c
mtdsuper.c mtd: Kill mount_mtd() 2019-09-05 14:34:26 -04:00
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c mtd: sm_ftl: Fix memory leak in sm_init_zone() error path 2019-09-15 23:50:50 +02:00
sm_ftl.h
ssfdc.c