Merge pull request #543 from gh2o/patch-1

Avoid dereference of uninitialized pointer in rtw_ndev_notifier_call()
This commit is contained in:
Christian Bremvåg 2020-01-25 02:08:27 +01:00 committed by GitHub
commit 5052cb716d
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;