projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfcc8ba
)
wifi: ath12k: use kfree_skb() instead of kfree()
author
Dan Carpenter
<error27@gmail.com>
Thu, 16 Feb 2023 12:16:14 +0000
(15:16 +0300)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Mon, 20 Feb 2023 08:35:51 +0000
(10:35 +0200)
Sk_buffs are supposed to be freed with kfree_skb().
Fixes:
d889913205cf
("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link:
https://lore.kernel.org/r/Y+4ejiYakhEvEw7c@kili
drivers/net/wireless/ath/ath12k/dp_tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath12k/dp_tx.c
b/drivers/net/wireless/ath/ath12k/dp_tx.c
index 95294f35155c49a59456a6f7b705a3dfec9d96c5..fd8d850f9818fd1fa7d9e61c1d90b5b4a8d4ad7c 100644
(file)
--- a/
drivers/net/wireless/ath/ath12k/dp_tx.c
+++ b/
drivers/net/wireless/ath/ath12k/dp_tx.c
@@
-270,7
+270,7
@@
int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif,
skb_ext_desc->len, DMA_TO_DEVICE);
ret = dma_mapping_error(ab->dev, ti.paddr);
if (ret) {
- kfree(skb_ext_desc);
+ kfree
_skb
(skb_ext_desc);
goto fail_unmap_dma;
}