Andrew Goodbody
a5c83da3cc
mtd: nand: Prevent dereference of NULL pointer
...
In nand_wait_ready there is a loop that includes a NULL check for
chip->dev_ready before it is dereferenced. Use a NULL check once the
loop is exited as well to cover the case where it exits due to a timeout
and it is therefore not known if chip->dev_ready is NULL or not.
This issue found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
2025-10-28 12:11:09 -06:00
..
2025-02-12 10:49:56 +02:00
2024-11-26 21:14:44 +01:00
2025-09-25 18:54:07 -06:00
2024-07-22 10:53:05 -06:00
2024-10-11 11:44:48 -06:00
2025-08-23 16:37:05 +02:00
2025-03-15 10:35:01 +01:00
2025-08-03 10:22:04 +02:00
2021-01-18 15:14:34 -05:00
2024-05-20 13:35:03 -06:00
2021-01-05 12:26:35 -07:00
2024-05-20 13:35:03 -06:00
2025-08-03 10:22:04 +02:00
2020-07-11 21:30:21 +09:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2025-10-09 20:57:27 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-06-14 09:09:39 -06:00
2025-08-03 10:32:08 +02:00
2025-03-16 14:02:05 +01:00
2023-11-16 12:43:48 -05:00
2022-08-22 11:15:15 +02:00
2022-07-13 23:03:37 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2022-12-05 16:07:13 -05:00
2025-05-31 16:59:12 -03:00
2024-05-20 13:35:03 -06:00
2025-08-03 10:22:04 +02:00
2022-07-22 13:29:06 +02:00
2025-10-28 12:11:09 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:05 -06:00
2022-07-22 13:29:06 +02:00
2024-05-20 13:35:03 -06:00
2024-06-17 09:43:45 +02:00
2022-07-22 13:29:06 +02:00
2022-08-22 11:15:24 +02:00
2024-05-20 13:35:03 -06:00
2023-11-16 12:43:48 -05:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2022-07-22 13:29:06 +02:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:05 -06:00
2024-07-22 10:53:05 -06:00
2024-10-11 11:44:48 -06:00
2025-08-03 10:20:16 +02:00
2024-05-20 13:35:03 -06:00
2024-10-11 11:44:48 -06:00
2025-08-25 16:47:04 +02:00
2024-07-22 10:53:05 -06:00
2025-08-03 10:20:16 +02:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:05 -06:00