]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jun 2014 23:31:17 +0000 (16:31 -0700)
commitc3abec057bdddff22c68d6c172ec86d6fcbf652c
treed1d94b894b448033edbc7539e488d87b445127f1
parentc638fa706b498c35e23f4db944ab734fac43b2cf
net: allwinner: emac: Add missing free_irq

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>
Cc: <stable@vger.kernel.org> # 3.11+
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c