r8169: fix crash if CONFIG_DEBUG_SHIRQ is enabled
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 9 Dec 2018 21:05:11 +0000 (22:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Dec 2018 06:54:19 +0000 (22:54 -0800)
commitee28b30cbbe0b490f52ba222c9d392b99581545e
treeb96fe44e1f99407ad5187d3192b838e7ab7168a5
parent2f1a9f666751bdcf20de7c120b20c5d156b87cf7
r8169: fix crash if CONFIG_DEBUG_SHIRQ is enabled

If CONFIG_DEBUG_SHIRQ is enabled __free_irq() intentionally fires
a spurious interrupt. This interrupt causes a crash because
tp->dev->phydev is NULL at that time.

Fixes: 38caff5a445b ("r8169: handle all interrupt events in the hard irq handler")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c