qcacmn: Free outstanding skbs on Spectral detach

While detach if there are any outstanding skbs free them.

CRs-Fixed: 2470780
Change-Id: Ic9ee568a1af96b2535cc2a30747ac8e5190e1be6
このコミットが含まれているのは:
Edayilliam Jayadev
2019-06-13 11:56:07 +05:30
committed by nshrivas
コミット 7c72252ec8
2個のファイルの変更15行の追加3行の削除

ファイルの表示

@@ -1463,9 +1463,10 @@ init_160mhz_delivery_state_machine(struct target_if_spectral *spectral) {
*/
static inline void
deinit_160mhz_delivery_state_machine(struct target_if_spectral *spectral) {
if (spectral->spectral_report_cache)
if (spectral->spectral_report_cache && spectral->nl_cb.free_nbuff) {
spectral->nl_cb.free_nbuff(spectral->pdev_obj);
spectral->spectral_report_cache = NULL;
spectral->spectral_report_cache = NULL;
}
}
/**