mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
qcacld-3.0: Avoid possible NULL soc context dereference
Soc context fetched in hdd_rx_check_qdisc_for_adapter is not NULL validated before passing it to other APIs. Fix is to add NULL check for soc context in hdd_rx_check_qdisc_for_adapter. Change-Id: Ib6a660307009e55c54eb4b3747a8efab8e370241 CRs-Fixed: 3264121
This commit is contained in:
parent
65351084ba
commit
3ff2bafe8e
1 changed files with 3 additions and 0 deletions
|
|
@ -2158,6 +2158,9 @@ hdd_rx_check_qdisc_for_adapter(struct hdd_adapter *adapter, uint8_t rx_ctx_id)
|
|||
struct Qdisc *ingress_qdisc;
|
||||
bool is_qdisc_ingress = false;
|
||||
|
||||
if (qdf_unlikely(!soc))
|
||||
return;
|
||||
|
||||
/*
|
||||
* This additional ingress_queue NULL check is to avoid
|
||||
* doing RCU lock/unlock in the common scenario where
|
||||
|
|
|
|||
Loading…
Reference in a new issue