Files
linux-stable-mirror/lib
Tanya Agarwal e7b7f5a170 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:39:19 +02:00
..
2024-07-12 16:39:53 -07:00
2024-04-25 21:07:06 -07:00
2024-06-25 17:15:06 -07:00
2024-04-25 21:07:05 -07:00
2024-07-04 23:43:10 -07:00
2024-06-10 11:14:52 +01:00
2024-09-03 21:15:42 -07:00