Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp429172rdh; Wed, 14 Feb 2024 00:44:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVg4U78D+TQiRQUE80EfurONnr9fzDH9oc625crWJ6q3l1lsOWmepGqz+zUEfouogKAHRPekdpK6L650CY4kvQ1naULlPPYlgu14hkRDQ== X-Google-Smtp-Source: AGHT+IFpt/XuIf7N5yFiFr7qFf3KEouH6nYf+bt/Ua5+k8121v37s1I+2bQtSyp1VW+gXM5bOnxS X-Received: by 2002:ac8:5a84:0:b0:42c:7fe9:9ef4 with SMTP id c4-20020ac85a84000000b0042c7fe99ef4mr2163563qtc.57.1707900268166; Wed, 14 Feb 2024 00:44:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707900268; cv=pass; d=google.com; s=arc-20160816; b=yG9XxHqbt4afwbGf4btHOPHWCm9D7x+CDRhctANwE1OIEK7Jk6O1zQPFvtvpLa8Mhc CmXrNZufsA5zvxBXODcszMvnv9Z9VkI+hvnufDM5Wj0clIKIGIWtPxxyoafihb1A7wFq SJRy2bBvNkUgiai+J+NpBirrNmG5DREYbUOfekew9RtWTan6KBEfo/cADa3y9wiB+vOH afHahLnUVFZlL5fN8PVRtvjnWVVny/Eo17I1oWoL3WZg4bQULMvT0QdPm8aSyr63EMFP 19h/yQ3M1v7iF16Y5vzIaYd4v1olm4MXBSEgNV4JFkQ5Ne2z40gMUI/fcFYmUFYyX+yC Fiwg== 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=X4FL/FfRRnoRovnHa4V5ydHdKnnkL9YwjX466G9tv08=; fh=fzNUt2FG4WDkoEhirB7f5RyDfuQwVzJpENqHGx0kNDo=; b=BxAbT0RXCl0n3UhRv12v3rbRABJWeEg080FCnBGkNeQp3ZcAI3AU4HAYR4tJ4hs2BM jBA373p0jJSn6qzWpYreTrMEVlUijc1ThRNc+V2KBsCoW1rgQkhCm7dwZtlyur8LkWcB 9bz76xRbcwd70N4v//JDkCbh1wqZrZnBZXpjBf7UGVVdO59peP5H5jhx7XXlOaJPly0W 9kNxRkEw4jc4m2d+CrKCkL4t/5oJoTrf5Z3IaJeSO1IXNWONkIXvQ6uQxJfDle8plgnp e5hW9jfaPltynMi/ei0rr0W3DWbRtVcUdgWZEl2TFH28xPwM+dUzUs76GjhLhu6+oDNm I+tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WOJigtsT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVpjQPJNedAH28cxdf8pmrJYtmIqMEl/8tGP8wQ49v5RN+Yp0LSjOH5G9xrW5H8igFLCdY9SmxqpOeqRMgSxBL8rdrcxhl8ByonExfTkA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h19-20020ac85693000000b0042a7431a4b7si4487576qta.240.2024.02.14.00.44.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 00:44:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WOJigtsT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64875-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E575D1C2408D for ; Wed, 14 Feb 2024 08:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C63F210A31; Wed, 14 Feb 2024 08:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WOJigtsT" 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 E535CBE48; Wed, 14 Feb 2024 08:44:17 +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=1707900258; cv=none; b=mDASKbVsMb0Xw5itW1WDKgcIN/s76YAtIfKATkgGHy0PS0XnbJBrtZ5dthdJrrFayek1I2tQkm7kOGD824oO5s8IP4Z13wpgFXUERwDwYgcl5QNe46Rf+c4JaxtGLsuNQ/w8ll98M5S1qQqhePtFkRvVyuawIJALcmX+5n1gA8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707900258; c=relaxed/simple; bh=u3CxopS384xy1pq8axVOiaOQ1FEfcHdIIJHwm89eKjk=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=WKZcfTmWK5zU7TUOlHpxQllYSdpr6MoTGr962AbuqNFDrK60AhzElQoCf97OblpM80E/EiwbWG6kmOzQo8eg+0QOBCGmJgSPkgRczyP7VsRjsvo6cqsi+xdAikLzSaiXyTcwiw47r6AX4Tei+RHs4yBezBtkCRggJLNS2Nn5x4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WOJigtsT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F849C433C7; Wed, 14 Feb 2024 08:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707900257; bh=u3CxopS384xy1pq8axVOiaOQ1FEfcHdIIJHwm89eKjk=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=WOJigtsTcgI88bgbEoVvVOczkajq01e+kG6HeD6HlkMAYEUj9Wrrpef3REFn6wJDg g5aSAHOhpNq34cZDSOiBUGIwHLoW9USIpqSlMpaIIXcwbs4dQDHQHeYQqfkkvU0zNA ASiPhjwkFoAIHXAZOICEPdIPKISqmF63Wl/OLKAgsWWQzPtNk+8g1zuG9Zee9Q8hux v8TeXX2DSM0sWs8cP+LV03YKLZrMS1YcxT4hyaB+nvOzP5ybzmMTavrr4ex29w8lay PswgbU9vEcQaRGtcarXtl6eRViNjwdA3KBjJw0MqyOubI/CzyywG+CTwwIJGnx9wMF EbJv8vb3MfWGA== 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: ath12k: sanitize ath12k_mac_allocate() return code From: Kalle Valo In-Reply-To: <20240213100912.459018-1-arnd@kernel.org> References: <20240213100912.459018-1-arnd@kernel.org> To: Arnd Bergmann Cc: Jeff Johnson , Karthikeyan Periyasamy , Arnd Bergmann , Aloka Dixit , Wen Gong , Muna Sinada , Aditya Kumar Singh , ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170790025305.3179441.138152315558305278.kvalo@kernel.org> Date: Wed, 14 Feb 2024 08:44:14 +0000 (UTC) Arnd Bergmann wrote: > The return code has no initializer: > > drivers/net/wireless/ath/ath12k/mac.c:8006:9: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] > > Make it return -ENOMEM for allocation failures and remove the unused > variable instead. > > Fixes: 6db6e70a17f6 ("wifi: ath12k: Introduce the container for mac80211 hw") > Signed-off-by: Arnd Bergmann > Signed-off-by: Kalle Valo Nathan already fixed this: https://git.kernel.org/kvalo/ath/c/04edb5dc68f4 Patch set to Rejected. -- https://patchwork.kernel.org/project/linux-wireless/patch/20240213100912.459018-1-arnd@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches