mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Ignore netdev notifier when driver status is closed
when unloading driver, there is possible that the driver_status has been DRIVER_MODULES_CLOSED, then NETDEV_GOING_DOWN is received, which will cause assert in qdf_mutex_acquire as lock has been destoryed. Change-Id: Ic7e26dc1eb9a40a2462b041b0f3b84452e448cfd CRs-Fixed: 2126832
This commit is contained in:
parent
5f3047b4e1
commit
9db9d235af
1 changed files with 6 additions and 0 deletions
|
|
@ -510,6 +510,12 @@ static int __hdd_netdev_notifier_call(struct notifier_block *nb,
|
|||
QDF_ASSERT(0);
|
||||
return NOTIFY_DONE;
|
||||
}
|
||||
|
||||
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
||||
hdd_err("%s: Driver module is closed", __func__);
|
||||
return NOTIFY_DONE;
|
||||
}
|
||||
|
||||
if (cds_is_driver_recovering() || cds_is_driver_in_bad_state())
|
||||
return NOTIFY_DONE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue