Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2072794lqo; Mon, 13 May 2024 07:12:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvKhzW9hGhDYz1j5hTI/nVl/31lI+kelqd5zVmq/ZrZyU6yyN/+A1z7WnZsf8NGzkEHHJxGMqbldLGYm+lelWNjSEjUKDtP+1jWicNSA== X-Google-Smtp-Source: AGHT+IEcEnuJcJJRmTvJGiEjaIV9VEauu40TupSagEgKyJI/2YciZoga2QMPC5RDn5e4BfOp+6ff X-Received: by 2002:a05:6e02:1547:b0:36c:3249:bfe8 with SMTP id e9e14a558f8ab-36cc14f792fmr111056475ab.32.1715609558469; Mon, 13 May 2024 07:12:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715609558; cv=pass; d=google.com; s=arc-20160816; b=iG6pqgs7GrfVyup08bvJJ5bScNhUanhxiopaf3n6RnmPTb2/LODe++JT7JdSSioDPt QcukfTy9z8EAdPUR5eUcwoDbI+ieS9e6UhV0SEy4S1LGzyZhl/9vNbhVAhrxBY2vxYxe BKGKmzM5U3v0KeIxPJ8qUDIhLYm+eRsFn1VFSLXC9Q2Y1WsQNlIcQGlSX2dOcijKEYS/ kBK9xScsuwK78Iy4uaj5xNZHLxbYVmb+MakLY9Zf7gdR9sGNbDaxcFbP9d1sF6qesZ8H 7oMjG+XF97ITx9IcpScvL5Xlu2IEJs0/rV7LkMI2ZpNlf557SK/sTg/qa+4khra2FQ1o EkMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=rWUaDCoz6txJVAgzUWjazEzcnxdlgf+y8FA1qmgDM/Q=; fh=WGBXKrZP9C4W0vhuLTGYkExpHfTFt5P+F+/NzKmbQhA=; b=BIr6N/f214veo1EidghSNTgK2Jfg7sSFiGKbVnCDTbUrXLBiQr8wRMM2Y3kkMnRjyG tggkunXD/at3SqeQ3OyyeI3oIZkvbyHfUbCLPkIgFF29EbG9i+nC0d7Vec7JP9+TrtXm U8ZnWJmqRdRLGaXWBIqFeKTtgKSX2Y7GdG5l3M/OlxcdED5SAzgEOV6MI1ZRcJNZvyg/ stTxAA9w5JLNRNRlnBZT1KzCUXLNi5IayMeJI63phXgFzvrYDMkimNiFmeqPXTK19nT8 NfV1MwbDhpHGEQkv+eZFuahrO1Qv0P4X5RjmEnYjQIORiuWGtlJPM4TlAL8xPa1FqNGF 08Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fD/teDXb"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f555bsi9357568a12.334.2024.05.13.07.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 07:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fD/teDXb"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D9633281012 for ; Mon, 13 May 2024 14:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23C7415380F; Mon, 13 May 2024 14:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fD/teDXb" X-Original-To: linux-wireless@vger.kernel.org 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 ED06A1E497; Mon, 13 May 2024 14:12:34 +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=1715609555; cv=none; b=ZP6jyDRCXw9IX3a3mDXLGkEHP9gw16q85LHjVKynZ1NOZKBg8RXcDoTNOqvXs8eDbKKt9DsK3f+wbDRHuHAFE+NpNcZ6tww4q5SWnb7vuS5r2PJB+MbL2dmy5y7sUQbh/gxOfvhN1RAmvF+baToBjW0w+tvDPS23gmSh34gFQPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715609555; c=relaxed/simple; bh=cfVkEuuf1nm+2kNAircxmCV5OVM0lYdc8fwZJMocSJw=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=Cfus86E/4sRGVPB8EUKWJDjM1ZrWS9TAHPbLKfWbZIikazUKJFJqEiLuneKwtegO+4B/CjtYQvl2D5FRlaOcRcabcz5HPYQtTYGlWayRlpHazZL39MtuMS2+MZkBkRBaNhStIPdX2y36avSicXeLswP83HXH+eR1eVUXJvLJneI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fD/teDXb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59F4C32782; Mon, 13 May 2024 14:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715609554; bh=cfVkEuuf1nm+2kNAircxmCV5OVM0lYdc8fwZJMocSJw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=fD/teDXbT0HGcM7y9LjRgxQ5GQ2qDLPuOfKqqrGThMjiDPVKzLgiP3X0wbLDSQdxs 9oM1dd8FDmvO7fVpOHIzYtXVBkusb2DSkBiSWxBSXvVznbHXkYCgGJtFUJxCGq54tq ctEX3zIqiUKQuSyLdqnOWq+c5mD88YODZ2x/EG4YDXMLCFgtvfKA100coopPNjo8Rm EdMufQe5hHDNZvBUBX22S1RxJcuF3knWWLOFxVM6fuhiv18AozQG03reW+O4da8Yjm 6RGecGnBmPu3hmeiZLViIhfdgjZ9c3gsQkle9RGjPU5bS4nTaio5VvFwpPxyuFdiCA hUO8r4FSMdJ8g== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/2] wifi: ath12k: initialize 'ret' in ath12k_qmi_load_file_target_mem() From: Kalle Valo In-Reply-To: <20240504-qmi_load_file_target_mem-v1-1-069fc44c45eb@quicinc.com> References: <20240504-qmi_load_file_target_mem-v1-1-069fc44c45eb@quicinc.com> To: Jeff Johnson Cc: Jeff Johnson , , , , , Jeff Johnson User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171560955084.1690511.16227061715514007364.kvalo@kernel.org> Date: Mon, 13 May 2024 14:12:32 +0000 (UTC) Jeff Johnson wrote: > smatch flagged the following issue: > > drivers/net/wireless/ath/ath12k/qmi.c:2619 ath12k_qmi_load_file_target_mem() error: uninitialized symbol 'ret'. > > The reality is that 'ret' is initialized in every path through > ath12k_qmi_load_file_target_mem() except one, the case where the input > 'len' is 0, and hence the "while (remaining)" loop is never entered. > But to make sure this case is also handled, add an initializer to the > declaration of 'ret'. > > No functional changes, compile tested only. > > Signed-off-by: Jeff Johnson > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. bb0b0a6b96e6 wifi: ath12k: initialize 'ret' in ath12k_qmi_load_file_target_mem() 199f149e97dc wifi: ath11k: initialize 'ret' in ath11k_qmi_load_file_target_mem() -- https://patchwork.kernel.org/project/linux-wireless/patch/20240504-qmi_load_file_target_mem-v1-1-069fc44c45eb@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches