]> git.ipfire.org Git - people/ms/linux.git/commit
net: allwinner: emac: Add missing free_irq
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 23 Jun 2014 20:49:40 +0000 (22:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:21:29 +0000 (11:21 -0700)
commit3cfccac173f2dd60dcd5d3f007c92d3dbfb3b4e6
tree11bb992fe173d988c2a8cec5de67637b585d83ca
parentd3ec86e1b48bdbdabb6398e7fc39ab51a87c2f49
net: allwinner: emac: Add missing free_irq

commit b91113282bf44df46aba374a0b8f88a75bfd4b3f upstream.

If the mdio probe function fails in emac_open, the interrupt we just requested
isn't freed. If emac_open is called again, for example because we try to set up
the interface again, the kernel will oops because the interrupt wasn't properly
released.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/allwinner/sun4i-emac.c