Wentao Liang
8d46a27085
ata: sata_sx4: Add error handling in pdc20621_i2c_read()
...
The function pdc20621_prog_dimm0() calls the function pdc20621_i2c_read()
but does not handle the error if the read fails. This could lead to
process with invalid data. A proper implementation can be found in
/source/drivers/ata/sata_sx4.c, pdc20621_prog_dimm_global(). As mentioned
in its commit: bb44e154e2 , the variable spd0
might be used uninitialized when pdc20621_i2c_read() fails.
Add error handling to pdc20621_i2c_read(). If a read operation fails,
an error message is logged via dev_err(), and return a negative error
code.
Add error handling to pdc20621_prog_dimm0() in pdc20621_dimm_init(), and
return a negative error code if pdc20621_prog_dimm0() fails.
Fixes: 4447d35156 ("libata: convert the remaining SATA drivers to new init model")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn >
Reviewed-by: Niklas Cassel <cassel@kernel.org >
Signed-off-by: Damien Le Moal <dlemoal@kernel.org >
2025-04-09 15:24:49 +09:00
..
2024-07-03 16:44:22 +02:00
2024-10-30 16:07:36 -05:00
2025-01-09 17:52:17 +09:00
2025-01-09 17:52:17 +09:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2023-08-02 17:37:06 +09:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2025-01-15 15:21:27 +01:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2025-03-19 17:27:58 +01:00
2025-03-26 19:49:02 -07:00
2024-12-03 05:10:20 +01:00
2025-01-18 14:38:49 -06:00
2024-05-27 11:34:50 +02:00
2025-02-10 11:54:38 +01:00
2025-03-26 19:49:02 -07:00
2024-10-01 09:22:02 +02:00
2025-03-26 19:49:02 -07:00
2025-04-05 10:30:12 +02:00
2020-03-26 10:28:19 -06:00
2024-09-07 10:16:55 +09:00
2024-12-04 15:34:28 -05:00
2024-12-04 15:34:28 -05:00
2025-01-28 11:44:47 +01:00
2023-01-04 13:36:26 +09:00
2024-09-07 11:02:52 +09:00
2024-07-04 11:52:31 +02:00
2025-03-17 12:16:58 -07:00
2024-09-07 10:16:56 +09:00
2023-02-22 13:35:51 -08:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-10-17 09:55:08 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-12-03 05:10:20 +01:00
2023-08-24 08:09:59 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-07-30 07:10:30 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-07-30 07:10:38 +09:00
2024-07-30 07:10:34 +09:00
2024-08-02 09:18:42 +09:00
2024-10-17 09:55:08 +02:00
2023-11-20 09:22:26 +09:00
2024-07-30 07:09:54 +09:00
2024-10-01 09:22:02 +02:00
2024-10-17 09:55:08 +02:00
2023-03-24 19:19:19 -04:00
2024-05-07 07:23:31 +09:00
2025-01-26 16:12:44 -08:00
2023-03-24 19:19:19 -04:00
2024-10-17 09:55:08 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-07-28 08:52:42 +09:00
2025-02-18 10:32:34 +01:00
2024-10-17 09:55:08 +02:00
2024-10-01 09:22:02 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-12-03 05:10:20 +01:00
2024-10-17 09:55:08 +02:00
2025-04-08 12:36:03 +09:00
2024-10-01 09:22:02 +02:00
2024-10-17 09:55:08 +02:00
2025-01-18 14:38:49 -06:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-07-30 07:10:08 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:45:42 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-10-17 09:55:08 +02:00
2024-10-17 09:55:08 +02:00
2024-12-16 22:36:27 +09:00
2024-12-11 13:18:25 +09:00
2024-12-09 09:06:58 +09:00
2023-08-02 17:37:06 +09:00
2025-01-26 16:12:44 -08:00
2025-01-26 16:12:44 -08:00
2023-03-24 19:19:19 -04:00
2019-05-21 11:28:46 +02:00
2023-03-24 19:19:19 -04:00
2024-10-17 09:55:08 +02:00
2025-01-26 16:12:44 -08:00
2024-07-30 07:10:21 +09:00
2025-01-18 14:38:49 -06:00
2023-06-13 15:38:48 +09:00
2025-04-09 15:24:49 +09:00
2025-01-18 14:38:49 -06:00
2025-02-20 13:03:32 +01:00
2025-01-18 14:38:49 -06:00