[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z3nbAftm07ekm2Aq@visitorckw-System-Product-Name>
Date: Sun, 5 Jan 2025 09:06:09 +0800
From: Kuan-Wei Chiu <visitorckw@...il.com>
To: Tanya Agarwal <tanyaagarwal25699@...il.com>
Cc: haren@...ibm.com, ddstreet@...e.org, herbert@...dor.apana.org.au,
Markus.Elfring@....de, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org, skhan@...uxfoundation.org,
anupnewsmail@...il.com
Subject: Re: [PATCH V3] lib: 842: Improve error handling in sw842_compress()
On Sun, Jan 05, 2025 at 12:19:54AM +0530, Tanya Agarwal wrote:
> From: Tanya Agarwal <tanyaagarwal25699@...il.com>
>
> 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@...il.com>
LGTM. Thanks!
Reviewed-by: Kuan-Wei Chiu <visitorckw@...il.com>
Regards,
Kuan-Wei
Powered by blists - more mailing lists