mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Check WIFI module status during wifi logger start
During wifi logger start if the modules are in close state, it will access uninitialized lock. To handle this, check module status during start of the wifi logger. Change-Id: I10b3fffa45475c602c22b548d521f75c627b133e CRs-Fixed: 2012742
This commit is contained in:
parent
64ebe120fc
commit
3c30842fc8
1 changed files with 4 additions and 0 deletions
|
|
@ -4872,6 +4872,10 @@ static int __wlan_hdd_cfg80211_wifi_logger_start(struct wiphy *wiphy,
|
|||
if (status)
|
||||
return status;
|
||||
|
||||
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
||||
hdd_err("Driver Modules are closed, can not start logger");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX,
|
||||
data, data_len,
|
||||
|
|
|
|||
Loading…
Reference in a new issue