Re: [PATCH] net: qcom/emac: disable interrupts before calling phy_disconnect

2016-10-15 Thread David Miller
From: Timur Tabi Date: Fri, 14 Oct 2016 14:14:35 -0500 > 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

[PATCH] net: qcom/emac: disable interrupts before calling phy_disconnect

2016-10-14 Thread Timur Tabi
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 ref