qcacmn: Free outstanding skbs on Spectral detach
While detach if there are any outstanding skbs free them. CRs-Fixed: 2470780 Change-Id: Ic9ee568a1af96b2535cc2a30747ac8e5190e1be6
This commit is contained in:

committed by
nshrivas

parent
543c9b4909
commit
7c72252ec8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011, 2017-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -364,6 +364,9 @@ os_if_spectral_nl_unicast_msg(struct wlan_objmgr_pdev *pdev)
|
||||
ps->skb,
|
||||
ps->spectral_pid, MSG_DONTWAIT);
|
||||
|
||||
/* clear the local copy */
|
||||
ps->skb = NULL;
|
||||
|
||||
return status;
|
||||
}
|
||||
#else
|
||||
@@ -399,6 +402,9 @@ os_if_spectral_nl_unicast_msg(struct wlan_objmgr_pdev *pdev)
|
||||
if (status < 0)
|
||||
spectral_err("failed to send to spectral scan app");
|
||||
|
||||
/* clear the local copy */
|
||||
ps->skb = NULL;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -451,6 +457,9 @@ os_if_spectral_nl_bcast_msg(struct wlan_objmgr_pdev *pdev)
|
||||
ps->skb,
|
||||
0, 1, GFP_ATOMIC);
|
||||
|
||||
/* clear the local copy */
|
||||
ps->skb = NULL;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -539,6 +548,8 @@ void os_if_spectral_netlink_deinit(struct wlan_objmgr_pdev *pdev)
|
||||
return;
|
||||
}
|
||||
|
||||
os_if_spectral_free_skb(pdev);
|
||||
|
||||
if (sptrl_ctx->sptrlc_deregister_netlink_cb)
|
||||
sptrl_ctx->sptrlc_deregister_netlink_cb(pdev);
|
||||
|
||||
|
Reference in New Issue
Block a user