net: thunder: Fix crash upon shutdown after failed probe
authorPavel Fedin <p.fedin@samsung.com>
Thu, 12 Nov 2015 11:55:18 +0000 (14:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Nov 2015 23:30:00 +0000 (18:30 -0500)
commit5883d9c6d7e680bcdc7a8a9ed2509cd10dd98206
tree5ee8e0a2dafd07803119989080a2edcaba56e3c9
parented5a377d87dc4c87fb3e1f7f698cba38cd893103
net: thunder: Fix crash upon shutdown after failed probe

If device probe fails, driver remains bound to the PCI device. However,
driver data has been reset to NULL. This causes crash upon dereferencing
it in nicvf_remove()

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c