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)
commitc98b0537f0d962b46c62c27b6c2d783257f7400f
tree3c5848d0ddded930eb02991aeec1d21b08b5d31b
parenta8f5cb9e79913a6918f87495d4969706f8817b8e
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: 03eb3eb4d4d5 ("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