]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunder: Check for driver data in nicvf_remove()
authorPavel Fedin <p.fedin@samsung.com>
Mon, 16 Nov 2015 14:51:34 +0000 (17:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 21:24:44 +0000 (16:24 -0500)
commitafc6d8901a66afc5fa5a44b066012ff49fe99104
treeacb06327cdf15112241f13b7a45f9a98e0411ef7
parent85bf0ca502e4cd8a08e30bbb643456a758b61027
net: thunder: Check for driver data in nicvf_remove()

In some cases the crash is caused by nicvf_remove() being called from
outside. For example, if we try to feed the device to vfio after the
probe has failed for some reason. So, move the check to better place.

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