mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-03 21:04:05 +00:00
Fixed a issue when DEBUG was enabled
This commit is contained in:
parent
e9daed6187
commit
b3aef6d290
@ -1439,7 +1439,7 @@ static u8 is_rtw_ndev(struct net_device *ndev)
|
||||
static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
|
||||
{
|
||||
struct net_device *ndev;
|
||||
_adapter *adapter = rtw_netdev_priv(ndev);
|
||||
_adapter *adapter
|
||||
|
||||
if (ptr == NULL)
|
||||
return NOTIFY_DONE;
|
||||
@ -1453,6 +1453,8 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
|
||||
if (ndev == NULL)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
adapter = rtw_netdev_priv(ndev);
|
||||
|
||||
if (!is_rtw_ndev(ndev))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user