Thread (1 message) 1 message, 1 author, 2020-12-17

Re: [PATCH][next] ath11k: add missing null check on allocated skb

From: Kalle Valo <hidden>
Date: 2020-12-17 06:40:16
Also in: ath11k, kernel-janitors, linux-wireless, lkml

Kalle Valo [off-list ref] writes:
Colin King [off-list ref] wrote:
quoted
Currently the null check on a newly allocated skb is missing and
this can lead to a null pointer dereference is the allocation fails.
Fix this by adding a null check and returning -ENOMEM.

Addresses-Coverity: ("Dereference null return")
Fixes: 43ed15e1ee01 ("ath11k: put hw to DBS using WMI_PDEV_SET_HW_MODE_CMDID")
Signed-off-by: Colin Ian King <redacted>
Signed-off-by: Kalle Valo <redacted>
Patch applied to ath-current branch of ath.git, thanks.

c86a36a621f2 ath11k: add missing null check on allocated skb
I did a mistake and that commit id will change, so please disregard
this. There will be a new mail soon.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help