summaryrefslogtreecommitdiff
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@codeaurora.org>2016-10-14 14:14:35 -0500
committerDavid S. Miller <davem@davemloft.net>2016-10-15 17:34:43 -0400
commit93966b715b32a783a1641f5a385901bbfab04733 (patch)
tree4e79dc8d5a2f9ba30914935ac1c2080f0efb3b2f /lib/kobject.c
parentf0076436136751359e0886f3302a2a0b3a28ba6e (diff)
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>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions