diff options
| author | Wentao Liang <[email protected]> | 2025-04-02 07:56:23 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2025-04-07 07:02:49 +0000 |
| commit | b79fe1829975556854665258cf4d2476784a89db (patch) | |
| tree | e22c4997c00ca227f38a853918d24a41945d66c8 /net/core/lock_debug.c | |
| parent | mtd: inftlcore: Add error check for inftl_read_oob() (diff) | |
| download | kernel-b79fe1829975556854665258cf4d2476784a89db.tar.gz kernel-b79fe1829975556854665258cf4d2476784a89db.zip | |
mtd: rawnand: Add status chack in r852_ready()
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: 50a487e7719c ("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]>
Diffstat (limited to 'net/core/lock_debug.c')
0 files changed, 0 insertions, 0 deletions
