Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp755507lqo; Thu, 16 May 2024 23:55:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKu7ADIUsZ6iyuaoga2utKKbvpet/cEahOBddtWegxNlzJkqQQs9uiB/5QhntJyf67D/pRVYFpdaLgak4cecWVbYsruHYtvFpF6kQIyw== X-Google-Smtp-Source: AGHT+IFgGA9FCjCUgmlUt4aj1ajSWKZV2wytOccVgRn0B04vnODPB4Nbv+78zRCp2hj+HFgY2qfC X-Received: by 2002:a17:907:9490:b0:a59:9a68:7260 with SMTP id a640c23a62f3a-a5a2d65f2eamr2623889766b.62.1715928912820; Thu, 16 May 2024 23:55:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715928912; cv=pass; d=google.com; s=arc-20160816; b=Ib3PD6nsRKBFLUcyhXns8oA4n8KyUwjcM02u7kp5jTcNOda48JhZeJmTsD1Mh4gUmi 98ipzo5iYgnRTcgAK0O+P+mIHGhOhtozDerblKdqEO3hSGirUJGhy4DGbGgTLJwWL58F Qa0kSICo0czbiv13EjEjindkFPP8z6b8OBt/+cS3cmwmia5sBemCAynk3ujEj16NpLtZ YrkzB1T2JlfXb4ZjOOSmn9zffdiOv2dc6G5d91ROgISDluRwRQIvhViVAUBdB0MAsAxt /OumcW/XalJr3+Isa5cOH8DR2smwh7/roSqX0nvIPjHDRwzmEaqq7RbwyaAcG3AfpERb LsPw== 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=gUq0dltKXljTT+k5BGcJEhu4T9Z0ON1mMfhMndXWQn0=; fh=vfMhrTK05px3BNDksDjfcNZjYrjb3CE2lHb/MxsXzYg=; b=ihyh/JgvKqlTFwxymirmhO5XS2JoH0edtn0dDSdVQtZNIf5UxtE5s0ftLDY4ZorJTh 7htk2I8AGzO+duW5cvMnFTv76xP7FfZehPAlSpGE+A9dOWPRK/IyhLTJso/vitBhhQdH FF1H3Gs3tz/jSSWynJlRVuJP8w9UCIPfRcKmsvP5MlMWRd1AK3a+iIKkUc2AU5jfxLya qu+44CLxPtN0unCBRNvbFdUk2rimjf2NT7XLocrWvcwV+N7f+61KKEizj/tBdIdSSA6M Vj0Y95zLxxnm+mO+0qd5aE+GzbtXYNvF9Nt0OOTqMRunEpLZ6JmIcjjfsDxnQ/7irtMF stIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ekm0KA1N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1794634asi964484666b.166.2024.05.16.23.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 23:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ekm0KA1N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7767-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 79EC81F2184B for ; Fri, 17 May 2024 06:55:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 268E314A8D; Fri, 17 May 2024 06:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ekm0KA1N" 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 E498214280; Fri, 17 May 2024 06:55:07 +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=1715928908; cv=none; b=WnizOKiSpo79rIRBJevlY3TX+4hq7u28vYvWtkZn6iaKawIx8UvZRS8xOm4iurViJJxODq1zZd9yi9ey5GW4y7Gr+gmag19DgVLeVuMRHMEjsSvCb3D2I2xSUIX9KRLj1nW8TDD0xh6oHvzFZCLsisk5Q9Kf1Wn5RCAg8hF5Pnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715928908; c=relaxed/simple; bh=SW3ZvHpjpz+gPQr9MPYdbKfCS55xJrzsHF5C2fLpP4A=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=BwA4vaRhLO5BskdpIOgvnFqrb0M9NxZgJ7h0sbtPTiVfBjvav7ri77WgJNXcTZtauk4frUkZx51kZnLnOvqWjgkGJ5vkgNBNJTmpPF/Hk7FRs5lEvUtsZyXRgynhsEw6aQRCeIrM0ZabmE9BH/MH5SwpD1M3ogm61Zd5DtF1ME4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ekm0KA1N; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA7AFC2BD10; Fri, 17 May 2024 06:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715928907; bh=SW3ZvHpjpz+gPQr9MPYdbKfCS55xJrzsHF5C2fLpP4A=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Ekm0KA1N3po+VN2nl8FSMBex8fDe067oxg0wA6WvdlgUU58un+aV1gF21ycHzFrse eHk/2boT+e2eArMJguHCfklPoa6WgJZMabAf0T2arkdy2uwIkOX2n4cbz5stwQ8g34 j4g9t1HYqnhFVvov+MxuBzN6hUg2JS0LM2bp5Xukj3RwBbjvWlltFkpXIoQlGp7nMU 3k3RMri0gA+wPzyiPd7riO9xOkKMTD6CQMX7YrMjB9XA+iMK3lrSFrFyVXzD4mh6N8 a0L0WeIXt0S4znk4ICduCdvMDTSenLJRPct99xMhXuIIZr38cMNaAsJlQ13q9bjxWs krm+GumiOio+w== 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 wireless-next] ath11k: Fix error path in ath11k_pcic_ext_irq_config From: Kalle Valo In-Reply-To: <20240508185902.70975-1-leitao@debian.org> References: <20240508185902.70975-1-leitao@debian.org> To: Breno Leitao Cc: horms@kernel.org, Jeff Johnson , "David S. Miller" , netdev@vger.kernel.org, linux-wireless@vger.kernel.org (open list:NETWORKING DRIVERS (WIRELESS)), ath11k@lists.infradead.org (open list:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER), linux-kernel@vger.kernel.org (open list) User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171592890381.3197586.18328283621008534575.kvalo@kernel.org> Date: Fri, 17 May 2024 06:55:05 +0000 (UTC) Breno Leitao wrote: > If one of the dummy allocation fails in ath11k_pcic_ext_irq_config(), > the previous allocated devices might leak due to returning without > deallocating the devices. > > Instead of returning on the error path, deallocate all the previously > allocated net_devices and then return. > > Fixes: bca592ead825 ("wifi: ath11k: allocate dummy net_device dynamically") > Signed-off-by: Breno Leitao > Reviewed-by: Simon Horman > Signed-off-by: Kalle Valo Patch applied to ath-current branch of ath.git, thanks. 637c435f08ea wifi: ath11k: Fix error path in ath11k_pcic_ext_irq_config -- https://patchwork.kernel.org/project/linux-wireless/patch/20240508185902.70975-1-leitao@debian.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches