From: Mike Ditto Date: Thu, 15 Jan 2009 04:43:43 +0000 (-0800) Subject: powerpc/fs_enet: Add missing irq free in error path. X-Git-Tag: v2.6.29-rc2~11^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d7e094d4212bc72f5575e54edfef1349e0c4cdb5;p=linux-2.6-omap-h63xx.git powerpc/fs_enet: Add missing irq free in error path. If something goes wrong attaching to phy driver, we weren't freeing the IRQ. Signed-off-by: Mike Ditto Signed-off-by: David S. Miller --- diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index 4e6a9195fe5..ce900e54d8d 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c @@ -795,6 +795,7 @@ static int fs_enet_open(struct net_device *dev) err = fs_init_phy(dev); if (err) { + free_irq(fep->interrupt, dev); if (fep->fpi->use_napi) napi_disable(&fep->napi); return err;