mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-04 05:14:52 +00:00
Avoid dereference of uninitialized pointer in rtw_ndev_notifier_call()
This should fix some of the crashes.
This commit is contained in:
parent
7ea21010ec
commit
f5a29914e7
@ -1428,7 +1428,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)
|
static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
|
||||||
{
|
{
|
||||||
struct net_device *ndev;
|
struct net_device *ndev;
|
||||||
_adapter *adapter = rtw_netdev_priv(ndev);
|
_adapter *adapter;
|
||||||
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return NOTIFY_DONE;
|
return NOTIFY_DONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user