]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61d0d1eb3978814a8677c5f12167ba9090225a23
tree5ee8e0a2dafd07803119989080a2edcaba56e3c9
parentca6224a9076b61b99c6ccbb42620dba5223c1905
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