summaryrefslogtreecommitdiffstats
path: root/drivers/net/fs_enet
diff options
context:
space:
mode:
authorMike Ditto <mditto@consentry.com>2009-01-14 20:43:43 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-14 20:43:43 -0800
commitd7e094d4212bc72f5575e54edfef1349e0c4cdb5 (patch)
tree90457cb771a72975ab18fce83858ccdd22a3358b /drivers/net/fs_enet
parent4e704ee3c2cd38748ca59d835435d6a7e7f6f613 (diff)
downloadop-kernel-dev-d7e094d4212bc72f5575e54edfef1349e0c4cdb5.zip
op-kernel-dev-d7e094d4212bc72f5575e54edfef1349e0c4cdb5.tar.gz
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 <mditto@consentry.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fs_enet')
-rw-r--r--drivers/net/fs_enet/fs_enet-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c
index 4e6a919..ce900e5 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;
OpenPOWER on IntegriCloud