Re: [PATCH] hid: intel-ish-hid: Fix uninitialized variable 'rv' in ish_fw_xfer_direct_dma

From: Benjamin Tissoires
Date: Fri Oct 04 2024 - 04:35:28 EST


On Fri, 04 Oct 2024 13:29:44 +0530, SurajSonawane2415 wrote:
> Fix the uninitialized symbol 'rv' in the function ish_fw_xfer_direct_dma
> to resolve the following warning from the smatch tool:
> drivers/hid/intel-ish-hid/ishtp-fw-loader.c:714 ish_fw_xfer_direct_dma()
> error: uninitialized symbol 'rv'.
> Initialize 'rv' to 0 to prevent undefined behavior from uninitialized
> access.
>
> [...]

Applied to hid/hid.git (for-6.12/upstream-fixes), thanks!

[1/1] hid: intel-ish-hid: Fix uninitialized variable 'rv' in ish_fw_xfer_direct_dma
https://git.kernel.org/hid/hid/c/d41bff05a61f

Cheers,
--
Benjamin Tissoires <bentiss@xxxxxxxxxx>