]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: fix double free of SGMII IRQ during shutdown
authorTimur Tabi <timur@codeaurora.org>
Thu, 13 Jul 2017 20:45:41 +0000 (15:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2017 15:55:32 +0000 (08:55 -0700)
commitaff4c9a5c3c396dd820e8d17cea2ef1c4beb90e4
tree3c5848d0ddded930eb02991aeec1d21b08b5d31b
parent5908ea3999fe6f82ef2ec4b07bda437361ed31d6
net: qcom/emac: fix double free of SGMII IRQ during shutdown

If the interface is not up, then don't try to close it during a
shutdown.  This avoids possible double free of the IRQ, which
can happen during a shutdown.

Fixes: 9dc42ea0d426 ("net: qcom/emac: add shutdown function")
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac.c