From: Jérôme Pouiller Date: Fri, 15 May 2020 08:33:24 +0000 (+0200) Subject: staging: wfx: trace acknowledges not linked to any stations X-Git-Tag: v5.15~3664^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07d51346b0686ac12d9cb7a526de3b547cd62c60;p=platform%2Fkernel%2Flinux-starfive.git staging: wfx: trace acknowledges not linked to any stations Some resources are associated to the outgoing of the stations. To avoid any resource leaks. It is important to understand why an acknowledge is not associated to any station. Add a trace for that purpose. Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20200515083325.378539-19-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index d01e679..a82f00f 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -481,6 +481,9 @@ static void wfx_tx_update_sta(struct wfx_vif *wvif, struct ieee80211_hdr *hdr) if (!sta_priv->buffered[tid]) ieee80211_sta_set_buffered(sta, tid, false); spin_unlock_bh(&sta_priv->lock); + } else { + dev_dbg(wvif->wdev->dev, "%s: sta does not exist anymore\n", + __func__); } rcu_read_unlock(); }