qcacld-3.0: Dont allocate reply skb without getting the request
On LL_STATS debugfs request from the userspace driver is allocating a reply vendor skb and trying to send the vendor command response to userspace, resulting in kernel warning and rejecting the allocation. Don't send the response to userspace if the command request is received for debugfs. Change-Id: I9e4374a39785883ed9092a2e7a956e8d8da2a22b CRs-Fixed: 3555919
This commit is contained in:

committed by
Rahul Choudhary

parent
ed37d33b4e
commit
3bb027009b
@@ -3173,9 +3173,13 @@ static int wlan_hdd_send_ll_stats_req(struct wlan_hdd_link_info *link_info,
|
|||||||
qdf_spin_unlock(&priv->ll_stats_lock);
|
qdf_spin_unlock(&priv->ll_stats_lock);
|
||||||
}
|
}
|
||||||
qdf_list_destroy(&priv->ll_stats_q);
|
qdf_list_destroy(&priv->ll_stats_q);
|
||||||
wlan_hdd_send_mlo_ll_iface_stats(adapter);
|
|
||||||
wlan_hdd_send_mlo_ll_peer_stats(hdd_ctx,
|
if (req->reqId != DEBUGFS_LLSTATS_REQID) {
|
||||||
|
wlan_hdd_send_mlo_ll_iface_stats(adapter);
|
||||||
|
wlan_hdd_send_mlo_ll_peer_stats(hdd_ctx,
|
||||||
(struct wifi_peer_stat *)mlo_stats);
|
(struct wifi_peer_stat *)mlo_stats);
|
||||||
|
}
|
||||||
|
|
||||||
qdf_mem_free(mlo_stats);
|
qdf_mem_free(mlo_stats);
|
||||||
exit:
|
exit:
|
||||||
qdf_atomic_set(&adapter->is_ll_stats_req_pending, 0);
|
qdf_atomic_set(&adapter->is_ll_stats_req_pending, 0);
|
||||||
|
Reference in New Issue
Block a user