[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240510115633.GS2347895@kernel.org>
Date: Fri, 10 May 2024 12:56:33 +0100
From: Simon Horman <horms@...nel.org>
To: Breno Leitao <leitao@...ian.org>
Cc: Kalle Valo <kvalo@...nel.org>, Jeff Johnson <jjohnson@...nel.org>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
"open list:NETWORKING DRIVERS (WIRELESS)" <linux-wireless@...r.kernel.org>,
"open list:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER" <ath11k@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH wireless-next] ath11k: Fix error path in
ath11k_pcic_ext_irq_config
On Wed, May 08, 2024 at 11:59:01AM -0700, 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 <leitao@...ian.org>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists