]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Fix for crash while BGX teardown
authorThanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Wed, 29 Jul 2015 13:49:46 +0000 (16:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 06:52:32 +0000 (23:52 -0700)
commit027a7ae8939081c9ff62d2fe7876d2ee65040095
treeee27afe8ce9af746388306f50e060c8018fe0e21
parent544de0746c6013d00e75e310d9fbb5da79fbdecf
net: thunderx: Fix for crash while BGX teardown

Cortina phy does not have kernel driver and we don't attach
device with phy layer for intefaces like XFI, XLAUI etc,
Hence check for interface type before calling disconnect.

Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c