mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
commit
78055f23c4
@ -1352,7 +1352,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;
|
||||
@ -1365,6 +1365,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