1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

Avoid dereference of uninitialized pointer in rtw_ndev_notifier_call()

This should fix some of the crashes.
This commit is contained in:
Gavin Li 2020-01-24 16:32:51 -08:00 committed by GitHub
parent 7ea21010ec
commit f5a29914e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{
struct net_device *ndev;
_adapter *adapter = rtw_netdev_priv(ndev);
_adapter *adapter;
if (ptr == NULL)
return NOTIFY_DONE;