Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2699382lqo; Tue, 14 May 2024 06:52:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWmtS5u/kZeUViTlaRSuDrGQX1ukmN8z2ESU8UKC3tIo4yFgoN/S9njF5+7WNRwwkVAqfOAYb+fDjbOAIOj8YgqkNuY+1tEpzFrpJyBg== X-Google-Smtp-Source: AGHT+IF7j6me4OLyYZBNopSLvE/1DG+MBQbZQCJthz5NkSTx/kE5FHrPI6OYwMlRvKOvB40vlTJl X-Received: by 2002:a19:5f44:0:b0:51d:530f:dceb with SMTP id 2adb3069b0e04-522102779f9mr11941970e87.57.1715694742060; Tue, 14 May 2024 06:52:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715694742; cv=pass; d=google.com; s=arc-20160816; b=k37ImDmMJDZRyvbsiJHBUs5IyDjBkZsQR4KUaazIyrToWqW9JrOWGGKhqzoHAsMVHX U1PrEVEJhzxNZ/H/yZYwhdQuPYVhDS/UW1rVKiE0aMQOZO7DqRaWi7D5V6zECG0zL3WX nnforlh/sSRnIXcNx4BI2MI4fHWbL9Oty2dpS/q8kt5JmBn6WRC3GfNvcI1X/ktDgbzK wbJk4gPAvwntafUW8YV+g/g9lNunNXIB4aJTILS37nIz+9B5SqYZ9R41etHh6RPqr9RO 2rmFPSd1sc3BDi7qQhvf3dYlqQT/t3RZBo7GeKyUmhaZ9TZHy03lkgF8KKjtXMc5uCvA FQQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=PENZCFomTm5tQGAsks9ufWO3m79aXAbeSJJHfZfEYbc=; fh=7/5fzEmik3h6UX9YNL/ZKIBPs+pS0R5PgzQOG8HP78I=; b=lER1x8WW8exHJTCwlwP/pNb8xHtG7XnuCvnxyJ7cGfIXP2HEc50YM6x6sZxCu5bMXm k5+dFTMUnLjtecy5ceNWy4CNKKMVY/FAIWhTULrKBy0LwnSzclRT7jhE8MCnN36KT6Kr j8wrVmWgAQPWeoidD2qOKx1JbeNgOFruV+WkHsb5Cj029R8cQEflvLn8z18FY24RY3AJ vhKhEP+LdB8CJJdKbCObD9CwB4eDs3fg0JXo7bgIIsorTIgESo+n6AVAjr/aXYJnPEwq chVUaNLFEsVUiZ0/o0o+eEeQNVl+AZF9yoLxDkyZiSCRC++QjdhaRSGaibnzo/j8fAyA oMqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSpTyays; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178765-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-a5a17b22080si637586766b.484.2024.05.14.06.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:52:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178765-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=gSpTyays; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178765-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 B660E1F219C7 for ; Tue, 14 May 2024 13:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDCC9145332; Tue, 14 May 2024 13:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gSpTyays" 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 DBA6C144D26; Tue, 14 May 2024 13:51:54 +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=1715694715; cv=none; b=poUJ4VG8UtJof+WhUyXLRZGZWJAQ2B5Aeze45k5X1OKviZp50PHHrzfWSkugachJ/vVnnxIOiz99y3hWP38qzXutIz14VgGXp2vfahYo0cEZVCCVu4rOM2tFNJ3NJ2P1jGXpNOkOFzmoQMJ1JVmuGQE7V4phm2XEAMKREfCQBHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715694715; c=relaxed/simple; bh=R/1VExEKXdpSSpeOfIuEd1O0aNDvKIRCpBfTqbd15Mg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iADA34kIDWZ/aNYyLu40pFQY9afU1oVtlkcPa/GjGCGEUkv/MEbHTABUukdznj9NvG5Npk3mIfmCkY9dzZJTlIKv8WAaQ6/J6rRH1gHkn4RSIAMVraxLUs7f4RXaElRED1EMzEYvqeczA7PNBknwws6KREGKFJi1a/PRADWfBPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gSpTyays; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06CABC4AF12; Tue, 14 May 2024 13:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715694714; bh=R/1VExEKXdpSSpeOfIuEd1O0aNDvKIRCpBfTqbd15Mg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gSpTyays0LYY4ooZsyyyRrDaM7pkLb7GYKzJoNE+EAYveWtjpZjRAciUaikEOnK+8 9WgIfyuiEDU3m8WY9ucvzuV0gd5Lsvgf71mEW7XMHdzKIntERMEoMbWshDz4QMA8kb /HITb97RmQnuPfok1H17zE9BhWNn8Dc1tUhZEbKFlzRZqrcum8I0EF7lHkLf0uQiMn sSF781Q5C0szFqPSq/CS2Tn8hGx/w1/pna8nNn1ePQ400JO42CyqysewadMNAr4B+u PBHePE0+rSsZ9o6jzCkpVRpEXxiTzMxWhTl+2lPitb3id1fD1Z25skmBF5NuuQdyrL wzo7UKSIeD0ug== Date: Tue, 14 May 2024 06:51:53 -0700 From: Jakub Kicinski To: Kalle Valo Cc: Breno Leitao , 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) Subject: Re: [PATCH wireless-next] ath11k: Fix error path in ath11k_pcic_ext_irq_config Message-ID: <20240514065153.1320f47f@kernel.org> In-Reply-To: <171569306687.2017278.16792087877494747045.kvalo@kernel.org> References: <20240508185902.70975-1-leitao@debian.org> <171569306687.2017278.16792087877494747045.kvalo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 14 May 2024 13:24:28 +0000 (UTC) Kalle Valo 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? There's no rush, FWIW, we can pick up the conversion after the merge window.