summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-ctrls-request.c
diff options
context:
space:
mode:
authorTanya Agarwal <tanyaagarwal25699@gmail.com>2025-01-14 19:42:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:39:19 +0200
commite7b7f5a170d3480614d617d455b804c9e1d9cb50 (patch)
tree3a77a79365a7376f098590acdd66424231a9f4b9 /drivers/media/v4l2-core/v4l2-ctrls-request.c
parent8ed5381756def0ad83551a0e9686997abbf9ac39 (diff)
lib: 842: Improve error handling in sw842_compress()
[ Upstream commit af324dc0e2b558678aec42260cce38be16cc77ca ] 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: 2da572c959dd ("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>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-request.c')
0 files changed, 0 insertions, 0 deletions