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 4E9B215855A; Thu, 22 Aug 2024 08:41:48 +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=1724316109; cv=none; b=Q2GMb9+2wiqd9uMzIP+me8CMLmeJhZvwS5aUfpAphPHbdFZ4wjrtRsy/zX0QRnXFjCvhAUafzPDMfDypj0WyncFXWGqAJ5CuePiId93aoAWtd2UBrF+pwRrwrkj+MgM276usi1+U7/A6GyXKPMydOwjJAckc/opaYbkpRS9aAtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724316109; c=relaxed/simple; bh=xFzOdzJN39N76WVAyxTbnW6oFSCY9ft8H8of/4mE5Vo=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=rrrrPlST/V4FobriProIpqYqi9pfFWErMJt5kB4UhAIhRMagpm1Nko+MRp3YwNjnrVT3eekj2XeT/r3SgWhJjGDTd1kSmwUaVrYiy/XBq7bUu8f5Jk023Q/r67cT+u5O/eqWy6ZUiWBG9q+h1un/yAZEXz1LtxudZUfu79dFmC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fucd5aE+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fucd5aE+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58322C4AF0C; Thu, 22 Aug 2024 08:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724316108; bh=xFzOdzJN39N76WVAyxTbnW6oFSCY9ft8H8of/4mE5Vo=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=fucd5aE+vz/qzWOpx6pBqfnwKjStrFYkVl0tLHpD/42meBVXsnxAySz8xhghJ54e4 Ul0I0JMQH+5BiSCft4e2XZWuQHD4CLLUN5UtKRygnXDJlGKAj/ZzmNze/DcpJ9UIhT o+W2sfRh+NEiK5cXVoImRQahGCcyD9bKvNY4Pg6G7iaexRojlaDb3oAilTZn7CPpg+ jRrtkKhW+49FxJcUoxS0eY7Ymi0Y3QyGsOJwjiXBUxlgrcBBDOmb0892oSg7Vbi5Se XI8bDC9s1m/0SJGm9j5/kHUgwEkiwpw6vxuBlBYv7GYvMsKzAmuyLHYP0MX4hnJK+v OlTwcUSbRlZXQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: mwifiex: Fix uninitialized variable in mwifiex_cfg80211_authenticate() From: Kalle Valo In-Reply-To: References: To: Dan Carpenter Cc: David Lin , Brian Norris , Francesco Dolcini , Johannes Berg , Aloka Dixit , Sascha Hauer , Rafael Beims , Ruan Jinjie , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <172431610439.2217900.17742585529305793068.kvalo@kernel.org> Date: Thu, 22 Aug 2024 08:41:46 +0000 (UTC) Dan Carpenter wrote: > Smatch complains that: > > drivers/net/wireless/marvell/mwifiex/cfg80211.c:4408 mwifiex_cfg80211_authenticate() > error: uninitialized symbol 'varptr'. > > It's a check for NULL, but "varptr" is either non-NULL or uninitialized. > Initialize it to NULL. > > Fixes: 36995892c271 ("wifi: mwifiex: add host mlme for client mode") > Signed-off-by: Dan Carpenter > Acked-by: Brian Norris Patch applied to wireless-next.git, thanks. c9f4c1ec6972 wifi: mwifiex: Fix uninitialized variable in mwifiex_cfg80211_authenticate() -- https://patchwork.kernel.org/project/linux-wireless/patch/d7d043b2-95d5-4e1d-b340-5d7330053ac6@stanley.mountain/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches