mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
In r852_ready(), the dev get from r852_get_dev() need to be checked.
An unstable device should not be ready. A proper implementation can
be found in r852_read_byte(). Add a status check and return 0 when it is
unstable.
Fixes: 50a487e771 ("mtd: rawnand: Pass a nand_chip object to chip->dev_ready()")
Cc: [email protected] # v4.20+
Signed-off-by: Wentao Liang <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>