linux-stable/drivers/mtd
Miaoqian Lin 7d3c0c1276 mtd: rawnand: Fix return value check of wait_for_completion_timeout
[ Upstream commit 084c16ab42 ]

wait_for_completion_timeout() returns unsigned long not int.
It returns 0 if timed out, and positive if completed.
The check for <= 0 is ambiguous and should be == 0 here
indicating timeout which is the only error case.

Fixes: 83738d87e3 ("mtd: sh_flctl: Add DMA capabilty")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412083435.29254-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-12 12:17:06 +02:00
..
chips mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdstd_setup() 2020-10-01 13:12:28 +02:00
devices mtd: phram: fix a double free issue in error path 2020-04-24 08:01:24 +02:00
lpddr mtd: lpddr: fix excessive stack usage with clang 2020-10-29 09:07:08 +01:00
maps mtd: physmap_of: Release resources on error 2019-11-24 08:23:08 +01:00
nand mtd: rawnand: Fix return value check of wait_for_completion_timeout 2022-05-12 12:17:06 +02:00
onenand mtd: onenand: Check for error irq 2022-04-20 09:08:16 +02:00
parsers
spi-nor mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:40:34 +01:00
tests
ubi ubi: fastmap: Return error code if memory allocation fails in add_aeb() 2022-04-20 09:08:25 +02:00
Kconfig
Makefile
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c
cmdlinepart.c mtd: parser: cmdline: Fix parsing of part-names with colons 2020-12-29 13:47:10 +01:00
ftl.c
inftlcore.c
inftlmount.c
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c mtd: require write permissions for locking and badblock ioctls 2021-05-22 10:57:28 +02:00
mtdconcat.c
mtdcore.c
mtdcore.h mtd: Check add_mtd_device() ret code 2019-12-05 15:37:54 +01:00
mtdoops.c mtd: mtdoops: Don't write panic data twice 2020-10-29 09:07:08 +01:00
mtdpart.c mtd: Remove a debug trace in mtdpart.c 2019-12-05 15:38:04 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c