Files
linux/drivers/mtd
Miaoqian Lin 4da421035b 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-09 09:05:02 +02:00
..
2022-01-20 09:17:52 +01:00
2022-01-20 09:17:52 +01:00
2018-06-12 16:19:22 -07:00
2019-09-05 14:34:26 -04:00
2020-01-09 20:09:55 +01:00