Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2685823lqo; Tue, 14 May 2024 06:30:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV0lOtui54vd/nShcJmDPn0YMUigpCBSbcm0fuWBDPX7I08zMUTYuxLtLltJw4lkTUA4x6cALZzlY4hZzVErpw8kK+YQ16c/bteNFDsA== X-Google-Smtp-Source: AGHT+IG2zIKrdOsfrnWaoD0/UEFvBJCo9mgg268rrxdZCiqoVMZWGtUOBsmR49KHP0JxMKDmcyfi X-Received: by 2002:a05:6214:5bc3:b0:6a0:949c:4431 with SMTP id 6a1803df08f44-6a168140b1bmr176160066d6.8.1715693458640; Tue, 14 May 2024 06:30:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715693458; cv=pass; d=google.com; s=arc-20160816; b=OK/tVcolPwlkCLcAJ3zu6vazB7u4wBB8/Bnfg3F50qXcKeoqjq8PXA6IwuPS1RAERy /r7EccaJYLU74VVvEizZVh5Ne63moK+88RuUayZ+o2FI2GWh8R5yx2wbE36Q/956SNfF cGom41KJ0UPtlFB6XrqL8FMjrDRqljX1tO8hH9zTDIxVbxVnQk1GPc2NfQkOZ3Av6qMc 2rhu+tYPRGCYzSRg1HlC6+IpQi2+xRRCV9Orj1WkMzT75JFmHMe6cG+Vb8OakBgK8QdP tRCv75fM83gXilDjI/MjsiIgh/q2TDnWLUFNlcqHvsuAqgCnwR+0NtQOCXULJ+IV/u0H gHSQ== 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=0qm/uQ/vwjibVWAqWq5aRiBYJQB6zouDXVfJY+Rb2CE=; fh=vfMhrTK05px3BNDksDjfcNZjYrjb3CE2lHb/MxsXzYg=; b=fqUHNfvkDOLlPClv99hr0mWxT5X5ZBITuX2JG91jU0ZATmpmY9k0Kd4HVljhRgTvTD EH+gzh3YmqK3CDC5UQ8Pbsz+4FvhLZTAB0xYKEwwcBYbbahqyyCG6apWQuuaH9axeP2J +63X7Xtzj+A/Leg1HwxsMuNOJMEzd/M3EA7bGgEc6fSYSsQCQFCWu5nFwlpRHhS7olQM /AGUVe38tWz1wYr3ZCmNi/5Oi8VZGK/tKbbVmdlVfGyXj2aJxhx6gypa11TJ9wTzAYo0 hA0XNYHX3hD85v9Ik8Cnfekdr4kNTRbQpH9mbf7WN55NPQkURyLIaYAVN1dVZypKGcBM R5zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qgBjSd2o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df549efb7si119596341cf.35.2024.05.14.06.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qgBjSd2o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7640-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 5E6991C224A4 for ; Tue, 14 May 2024 13:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EBB7144D0E; Tue, 14 May 2024 13:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qgBjSd2o" 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 E72B114430A; Tue, 14 May 2024 13:24:31 +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=1715693072; cv=none; b=iuFchRqlf+0GJnz0rxF/3rfrZUYgr3twiF1q8Gl3omNMWoNKNoQxlBGeNYiE3qQR4LczTyoQyuYRCK85bOJMYOGPvzeFR+oNnTV9/OWtohhw/dloiuHoe4C3COlZNYqZ0cxNjaXgp607sFWg2it+e31d25S4IEIZ8NTvHNY18kg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715693072; c=relaxed/simple; bh=EbXUyLPzVf2Qs04ZBeB7sglb2l63aesvqV1ukVQsRgk=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=tujQVS+LMEdhuv6sghLQKH/NgtMBPc88JSI3+OejKUnzPEGWoGPgFkLlwzuJ/LsZR/1MixCYkfBqrs18oRdsVnZwunnWveXFCgPrmF7iS9Zudyh6Lei1UpNgGejOt5zfOS6BLCwbNC/r4OCg/Kp5BsKJAhFnhr07meIR0X32dQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qgBjSd2o; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92279C2BD10; Tue, 14 May 2024 13:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715693071; bh=EbXUyLPzVf2Qs04ZBeB7sglb2l63aesvqV1ukVQsRgk=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=qgBjSd2oEvIkfEN62NOmnXs5vsBqCuQ2xJ6Xu3fuP7dWWKq0qWTG7FXVqF3IBn9OF hpNLxSa32lBaGjwQga6rIv4NNpEqYe18r6T90HY2BROs55HoxrQEKr0VGvMssbHO1A ZDFJ3KXm1aFRPDqjaiY4+l8cFVxdmTLj/jbbpvt2KElnGJi+flEVzjE8QzZm8W/PtD BDjhcZaUWQeMEh97Ra2lzWj6+YXiuMRcxQB6I2sIMlCoZYOp4GjPWDxZJQ1zQZwVHq U6W7tste388hEaYkYOs+/xufyEd4eyT/LVqMnlvsNius3agawYdD1HCfYUuM+2bQk1 hMYD7kYjaHlxA== 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: <171569306687.2017278.16792087877494747045.kvalo@kernel.org> Date: Tue, 14 May 2024 13:24:28 +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 As commit bca592ead825 is in net-next I think this patch needs to go to v6.10, right? -- https://patchwork.kernel.org/project/linux-wireless/patch/20240508185902.70975-1-leitao@debian.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches