Fernando Yang
28f6d0b5ff
iio: adc: ad7266: Fix variable checking bug
...
commit a2b86132955268b2a1703082fbc2d4832fc001b8 upstream.
The ret variable was not checked after iio_device_release_direct_mode(),
which could possibly cause errors
Fixes: c70df20e3159 ("iio: adc: ad7266: claim direct mode during sensor read")
Signed-off-by: Fernando Yang <hagisf@usp.br>
Link: https://lore.kernel.org/r/20240603180757.8560-1-hagisf@usp.br
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 09:12:52 +02:00
..
2021-03-25 09:04:15 +01:00
2020-07-20 09:03:20 +01:00
2024-02-23 08:41:52 +01:00
2024-02-23 08:41:52 +01:00
2024-02-23 08:41:52 +01:00
2022-06-14 18:32:30 +02:00
2023-06-09 10:30:14 +02:00
2024-07-05 09:12:52 +02:00
2020-09-29 17:27:05 +01:00
2022-09-08 11:11:37 +02:00
2020-07-20 09:02:49 +01:00
2021-05-14 09:49:58 +02:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2021-12-14 11:32:45 +01:00
2021-10-20 11:45:02 +02:00
2023-04-20 12:10:23 +02:00
2021-10-20 11:45:02 +02:00
2020-07-20 09:02:57 +01:00
2022-10-26 13:25:07 +02:00
2021-03-25 09:04:15 +01:00
2024-07-05 09:12:29 +02:00
2023-01-14 10:16:23 +01:00
2024-01-25 14:37:54 -08:00
2021-10-20 11:45:01 +02:00
2022-11-25 17:45:51 +01:00
2023-04-26 11:27:42 +02:00
2021-12-14 11:32:45 +01:00
2022-06-29 08:59:52 +02:00
2020-09-03 19:40:45 +01:00
2023-02-15 17:22:17 +01:00
2020-06-14 11:49:59 +01:00
2020-08-23 17:36:59 -05:00
2020-06-14 14:20:08 +01:00
2021-12-14 11:32:45 +01:00
2020-09-03 19:40:49 +01:00
2020-06-14 11:49:59 +01:00
2023-11-08 17:30:43 +01:00
2020-09-21 18:41:35 +01:00
2020-07-07 20:24:08 +01:00
2021-07-14 16:56:44 +02:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-11-08 15:36:48 +00:00
2020-06-14 11:49:59 +01:00
2021-05-14 09:50:15 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-09-03 19:40:49 +01:00
2022-10-26 13:25:07 +02:00
2019-12-15 12:15:19 +00:00
2020-06-07 10:45:08 -07:00
2021-10-20 11:45:02 +02:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:27 +01:00
2020-07-20 09:03:27 +01:00
2020-07-07 20:24:09 +01:00
2020-07-13 15:05:59 +01:00
2020-09-01 16:08:07 +02:00
2022-09-08 11:11:37 +02:00
2022-03-02 11:42:53 +01:00
2023-07-27 08:44:31 +02:00
2022-11-25 17:45:52 +01:00
2021-10-20 11:45:02 +02:00
2023-06-09 10:30:13 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2023-05-17 11:47:30 +02:00
2020-07-20 09:03:31 +01:00
2020-09-22 13:33:19 +01:00
2020-06-14 14:20:08 +01:00
2021-03-25 09:04:15 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 11:49:21 +01:00
2020-09-29 17:50:51 +01:00
2020-06-14 11:49:59 +01:00
2020-12-30 11:54:24 +01:00
2022-06-14 18:32:32 +02:00
2020-07-07 20:24:09 +01:00
2020-06-14 11:49:59 +01:00
2022-06-29 08:59:52 +02:00
2019-12-15 11:42:17 +00:00
2022-06-29 08:59:52 +02:00
2023-02-15 17:22:15 +01:00
2020-09-29 17:27:06 +01:00
2020-10-08 20:44:41 +01:00
2022-06-14 18:32:32 +02:00
2023-08-26 15:26:47 +02:00
2020-06-14 14:20:08 +01:00
2024-01-05 15:12:26 +01:00
2022-01-27 10:53:43 +01:00
2020-08-31 10:47:52 +01:00
2020-09-03 19:40:45 +01:00
2023-01-14 10:16:24 +01:00
2020-07-07 20:24:10 +01:00
2020-09-21 20:01:51 +01:00
2020-09-21 20:01:51 +01:00
2020-12-30 11:54:25 +01:00
2021-07-14 16:56:35 +02:00
2023-04-20 12:10:22 +02:00
2020-07-13 15:05:59 +01:00
2021-07-14 16:56:44 +02:00
2020-07-13 15:05:59 +01:00
2020-07-20 09:03:14 +01:00
2023-02-15 17:22:21 +01:00
2021-07-14 16:56:35 +02:00
2020-06-14 11:49:59 +01:00
2023-11-08 17:30:45 +01:00
2020-03-21 10:25:35 +00:00
2020-03-21 10:25:35 +00:00