mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
Merge "qcacld-3.0: Add sanity check on adapter before clean-up" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
501ddcbd27
1 changed files with 7 additions and 0 deletions
|
|
@ -4728,6 +4728,13 @@ static void hdd_ipa_cleanup_iface(struct hdd_ipa_iface_context *iface_context)
|
|||
|
||||
if (iface_context == NULL)
|
||||
return;
|
||||
if (iface_context->adapter->magic != WLAN_HDD_ADAPTER_MAGIC) {
|
||||
HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: bad adapter(%pK).magic(%d)!",
|
||||
__func__, iface_context->adapter,
|
||||
iface_context->adapter->magic);
|
||||
return;
|
||||
}
|
||||
|
||||
cdp_ipa_cleanup_iface(cds_get_context(QDF_MODULE_ID_SOC),
|
||||
iface_context->adapter->dev->name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue