From: Dan Carpenter <error27@gmail.com>
To: Kalle Valo <quic_kvalo@quicinc.com>
Cc: P Praneesh <quic_ppranees@quicinc.com>,
Bhagavathi Perumal S <quic_bperumal@quicinc.com>,
Wen Gong <quic_wgong@quicinc.com>,
Balamurugan Selvarajan <quic_bselvara@quicinc.com>,
Baochen Qiang <quic_bqiang@quicinc.com>,
ath12k@lists.infradead.org, linux-wireless@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: [PATCH] wifi: ath12k: use kfree_skb() instead of kfree()
Date: Thu, 16 Feb 2023 15:16:14 +0300 [thread overview]
Message-ID: <Y+4ejiYakhEvEw7c@kili> (raw)
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>
---
drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless/ath/ath12k/dp_tx.c
index 95294f35155c..fd8d850f9818 100644
--- 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;
}
--
2.39.1
next reply other threads:[~2023-02-16 12:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 12:16 Dan Carpenter [this message]
2023-02-20 8:35 ` [PATCH] wifi: ath12k: use kfree_skb() instead of kfree() Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y+4ejiYakhEvEw7c@kili \
--to=error27@gmail.com \
--cc=ath12k@lists.infradead.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_bperumal@quicinc.com \
--cc=quic_bqiang@quicinc.com \
--cc=quic_bselvara@quicinc.com \
--cc=quic_kvalo@quicinc.com \
--cc=quic_ppranees@quicinc.com \
--cc=quic_wgong@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).