Searched hist:"93966 b715b32a783a1641f5a385901bbfab04733" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/qualcomm/emac/ |
H A D | emac-mac.c | diff 93966b715b32a783a1641f5a385901bbfab04733 Fri Oct 14 14:14:35 CDT 2016 Timur Tabi <timur@codeaurora.org> net: qcom/emac: disable interrupts before calling phy_disconnect
There is a race condition that can occur if EMAC interrupts are enabled when phy_disconnect() is called. phy_disconnect() sets adjust_link to NULL. When an interrupt occurs, the ISR might call phy_mac_interrupt(), which wakes up the workqueue function phy_state_machine(). This function might reference adjust_link, thereby causing a null pointer exception.
Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|