Re: [PATCH] ath11k: fix missing free of skb on error return path
From: Kalle Valo
Date: Wed Dec 18 2019 - 12:54:17 EST
Colin King <colin.king@xxxxxxxxxxxxx> wrote:
> The error handling when the call to ath11k_hal_srng_get_entrysize fails
> leaks skb, fix this by returning via the err_free return path that will
> ensure the skb is free'd.
>
> Addresses-Coverity: ("Resource leak")
> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
Patch applied to ath-next branch of ath.git, thanks.
4358bcb54bb9 ath11k: fix missing free of skb on error return path
--
https://patchwork.kernel.org/patch/11289341/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches