From 0f0b405cd16f7aaff84a935984cae421897d725d Mon Sep 17 00:00:00 2001 From: Denis Kirjanov Date: Thu, 20 May 2010 04:00:59 +0000 Subject: sh_eth: Fix memleak in sh_mdio_release Allocated memory for IRQs should be freed when releasing the mii_bus Signed-off-by: Denis Kirjanov Acked-by: Nobuhiro Iwamatsu Signed-off-by: David S. Miller --- drivers/net/sh_eth.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/net') diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 586ed09..501a55f 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -1294,6 +1294,9 @@ static int sh_mdio_release(struct net_device *ndev) /* remove mdio bus info from net_device */ dev_set_drvdata(&ndev->dev, NULL); + /* free interrupts memory */ + kfree(bus->irq); + /* free bitbang info */ free_mdio_bitbang(bus); -- cgit v1.1