From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F72C14A614; Mon, 14 Oct 2024 14:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728916492; cv=none; b=nMehyXzLWLCEc5G64WWx3MKwv0LyjW0m9mTT6ygtPWBVm8cHoTsIMNPAJj74H7sLs5YZVvQSlMnI9XoDaLmTgUdI3egLmsPoOMVBIisKvCtVbc30aEviVDUeu876CcgQ27hV6abYRHTsg1ySQ34JnPQJARAxnvXAEanzndB4Pjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728916492; c=relaxed/simple; bh=9A0UodsOH4k+lW1eRrgbIrlDPSQXeDQx4BUf7X2Umb4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=inAtXh8lApzWG9f1GF2AiMTklfhhKvKjJ7l/SSLGyB9h+gCSWjIJPcoxv1wi3RTxXR0VoUzBenkc8RfV0atuhNtpvkvFeOKc5XYe2pDtJJnSiMh+0oJqmjAajBVNSPkTdSktsCUUP3b05kbe6z/VSGTkxb7tQ/zKucLEfuL+SlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2jFgvAMf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2jFgvAMf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E15A9C4CEC3; Mon, 14 Oct 2024 14:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728916492; bh=9A0UodsOH4k+lW1eRrgbIrlDPSQXeDQx4BUf7X2Umb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2jFgvAMf/Zy9HAiGWRnG47K2MH/suStg7IH9D0hqiNMeAAhowsd9qGBSgA4Pf07DQ JHRxJmiGSoINrIDQmRdi8GwuiKJN2y/QbtkhTsJ7QZ2hZW61MeR7QPcYhVTnPxXF0R FuHehTA6dmy4K5QwDgtdDzP/gAHUj1k46NcCtf24= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, SurajSonawane2415 , Benjamin Tissoires Subject: [PATCH 6.11 168/214] hid: intel-ish-hid: Fix uninitialized variable rv in ish_fw_xfer_direct_dma Date: Mon, 14 Oct 2024 16:20:31 +0200 Message-ID: <20241014141051.537273484@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241014141044.974962104@linuxfoundation.org> References: <20241014141044.974962104@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: SurajSonawane2415 commit d41bff05a61fb539f21e9bf0d39fac77f457434e upstream. 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. Cc: stable@vger.kernel.org Fixes: 91b228107da3 ("HID: intel-ish-hid: ISH firmware loader client driver") Signed-off-by: SurajSonawane2415 Link: https://patch.msgid.link/20241004075944.44932-1-surajsonawane0215@gmail.com Signed-off-by: Benjamin Tissoires Signed-off-by: Greg Kroah-Hartman --- drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hid/intel-ish-hid/ishtp-fw-loader.c +++ b/drivers/hid/intel-ish-hid/ishtp-fw-loader.c @@ -635,7 +635,7 @@ static int ish_fw_xfer_direct_dma(struct const struct firmware *fw, const struct shim_fw_info fw_info) { - int rv; + int rv = 0; void *dma_buf; dma_addr_t dma_buf_phy; u32 fragment_offset, fragment_size, payload_max_size;