]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: ethernet: aquantia: Null pointer check for aq_nic_ndev_alloc.
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:46 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
commitdf9000ef9609c8a5e57783d0667ba7f39f52ed1e
tree3577f23d8ce2925166c9b48538f9bee8bc773271
parentb350d7b8b8c99d67dc9a21eeeb1f3564c5213cbd
net: ethernet: aquantia: Null pointer check for aq_nic_ndev_alloc.

We should check for a null pointer for aq_nic_ndev_alloc
instead netdev_priv.

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c