diff options
| author | 2020-12-14 23:24:17 +0000 | |
|---|---|---|
| committer | 2020-12-17 08:45:20 +0200 | |
| commit | 292bff9480c8d52fc58028979c4162abd83f1aec (patch) | |
| tree | 6427742c3a54b2c809b622775d5b2c7ae186271b /tools/include/trace/git:/ssh:/git@git.zx2c4.com | |
| parent | net: x25: Remove unimplemented X.25-over-LLC code stubs (diff) | |
| download | linux-dev-292bff9480c8d52fc58028979c4162abd83f1aec.tar.xz linux-dev-292bff9480c8d52fc58028979c4162abd83f1aec.zip | |
ath11k: add missing null check on allocated skb
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 <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201214232417.84556-1-colin.king@canonical.com
Diffstat (limited to 'tools/include/trace/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
