Tanya Agarwal
3b619f2803
lib: 842: Improve error handling in sw842_compress()
...
[ Upstream commit af324dc0e2 ]
The static code analysis tool "Coverity Scan" pointed the following
implementation details out for further development considerations:
CID 1309755: Unused value
In sw842_compress: A value assigned to a variable is never used. (CWE-563)
returned_value: Assigning value from add_repeat_template(p, repeat_count)
to ret here, but that stored value is overwritten before it can be used.
Conclusion:
Add error handling for the return value from an add_repeat_template()
call.
Fixes: 2da572c959 ("lib: add software 842 compression/decompression")
Signed-off-by: Tanya Agarwal <tanyaagarwal25699@gmail.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-04-10 14:32:00 +02:00
..
2025-04-10 14:32:00 +02:00
2022-09-05 10:30:03 +02:00
2023-05-24 17:36:41 +01:00
2022-12-31 13:14:02 +01:00
2024-07-18 13:07:29 +02:00
2022-08-17 14:24:03 +02:00
2022-04-13 20:59:21 +02:00
2020-12-15 22:46:19 -08:00
2024-09-04 13:23:16 +02:00
2024-02-23 08:55:11 +01:00
2021-07-08 11:48:20 -07:00
2022-04-08 14:23:56 +02:00
2021-07-08 11:48:20 -07:00
2022-12-02 17:41:08 +01:00
2024-10-17 15:10:56 +02:00
2020-12-29 15:36:49 -08:00
2021-09-24 16:13:35 -07:00
2021-07-01 11:06:05 -07:00
2021-05-02 00:43:35 +09:00
2020-11-18 14:15:17 -06:00
2021-07-08 11:48:20 -07:00
2022-06-06 08:43:37 +02:00
2021-05-26 13:20:50 +02:00
2021-05-06 19:24:12 -07:00
2021-08-13 10:27:50 +02:00
2021-09-14 13:23:22 -07:00
2021-04-01 09:54:37 +01:00
2025-04-10 14:31:52 +02:00
2023-08-30 16:18:18 +02:00
2024-03-26 18:21:15 -04:00
2021-05-05 16:07:40 +02:00
2023-06-14 11:13:04 +02:00
2025-03-13 12:50:07 +01:00
2021-01-21 14:06:00 -07:00
2021-05-06 19:24:12 -07:00
2020-11-02 12:14:19 -08:00
2021-06-05 08:58:12 -07:00
2021-08-19 09:02:55 +09:00
2021-06-22 13:56:43 +02:00
2024-10-17 15:11:14 +02:00
2024-08-19 05:45:16 +02:00
2021-07-01 11:06:06 -07:00
2021-05-06 19:24:12 -07:00
2021-07-01 11:06:06 -07:00
2021-11-18 19:16:17 +01:00
2021-07-01 11:06:05 -07:00
2021-08-13 14:09:32 -10:00
2021-07-08 11:48:20 -07:00
2020-11-20 14:45:33 +11:00
2021-09-08 11:50:26 -07:00
2024-05-17 11:51:04 +02:00
2021-04-16 16:10:37 -07:00
2023-12-08 08:48:02 +01:00
2020-12-15 22:46:19 -08:00
2020-12-15 22:46:15 -08:00
2021-01-03 20:05:18 -05:00
2021-05-06 19:24:12 -07:00
2021-05-06 19:24:12 -07:00
2024-09-12 11:07:50 +02:00
2020-11-18 14:15:17 -06:00
2022-05-09 09:14:30 +02:00
2024-01-25 14:52:30 -08:00
2022-08-17 14:22:51 +02:00
2021-08-19 09:02:55 +09:00
2022-06-22 14:22:03 +02:00
2025-03-13 12:50:17 +01:00
2021-09-24 16:13:34 -07:00
2021-07-20 13:49:44 -07:00
2025-03-13 12:50:49 +01:00
2022-04-13 20:59:27 +02:00
2021-07-08 11:48:20 -07:00
2024-08-19 05:45:17 +02:00
2023-09-23 11:09:59 +02:00
2021-07-02 12:08:10 -07:00
2021-05-19 15:05:11 +02:00
2021-08-13 18:37:38 +02:00
2022-08-25 11:40:40 +02:00
2021-07-08 11:48:20 -07:00
2022-06-09 10:23:31 +02:00
2021-06-22 16:42:08 +02:00
2023-02-01 08:27:19 +01:00
2022-04-13 20:58:59 +02:00
2021-02-17 17:31:06 -06:00
2021-04-16 16:10:37 -07:00
2022-06-22 14:22:03 +02:00
2022-06-22 14:22:03 +02:00
2023-02-01 08:27:26 +01:00
2021-11-25 09:48:45 +01:00
2022-06-14 18:36:24 +02:00
2022-12-31 13:14:03 +01:00
2024-08-19 05:44:56 +02:00
2021-07-08 11:48:20 -07:00
2022-10-26 12:34:49 +02:00
2021-09-17 13:52:17 +01:00
2021-04-16 16:10:37 -07:00
2021-07-01 11:06:05 -07:00
2024-04-10 16:18:34 +02:00
2021-05-06 19:24:12 -07:00
2022-06-06 08:43:36 +02:00
2023-08-30 16:18:18 +02:00
2022-05-30 09:29:10 +02:00
2022-08-31 17:16:43 +02:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:20 -07:00
2021-09-03 10:08:28 -07:00
2021-07-08 11:48:20 -07:00
2021-08-24 19:52:40 -03:00
2022-05-30 09:28:59 +02:00
2022-05-30 09:29:15 +02:00
2024-06-16 13:39:16 +02:00
2022-08-17 14:24:08 +02:00
2021-07-08 11:48:20 -07:00
2024-05-02 16:24:49 +02:00
2024-12-14 19:51:18 +01:00
2021-08-30 07:50:56 -07:00
2020-11-19 11:56:16 -08:00
2021-06-18 11:43:09 +02:00
2021-08-13 10:27:49 +02:00
2021-07-08 11:48:20 -07:00
2024-03-26 18:21:18 -04:00
2022-08-17 14:23:23 +02:00
2023-07-23 13:47:25 +02:00
2021-01-18 11:03:26 +01:00
2020-12-15 22:46:16 -08:00
2021-07-01 11:06:03 -07:00
2022-08-17 14:23:43 +02:00
2024-01-25 14:52:30 -08:00
2021-09-03 09:58:15 -07:00
2024-04-10 16:18:35 +02:00
2022-04-08 14:23:54 +02:00
2021-06-25 11:31:03 -06:00
2022-04-08 14:24:01 +02:00
2023-10-19 23:05:33 +02:00
2022-12-31 13:14:33 +01:00
2021-09-08 12:55:35 -07:00
2021-03-24 15:16:09 -07:00
2023-09-19 12:23:01 +02:00
2021-09-08 11:50:26 -07:00
2025-01-09 13:28:41 +01:00
2021-07-01 11:06:05 -07:00
2022-04-13 20:59:27 +02:00
2021-09-03 09:58:14 -07:00
2022-04-08 14:24:09 +02:00
2021-07-19 11:39:28 +02:00
2021-02-17 14:08:01 +01:00
2023-07-23 13:46:56 +02:00
2020-11-18 14:15:17 -06:00
2023-02-01 08:27:22 +01:00
2021-02-05 11:03:47 -08:00
2023-02-25 12:06:44 +01:00
2024-01-05 15:13:35 +01:00
2022-04-08 14:24:09 +02:00