Skip to content

Commit

Permalink
powerpc/fs_enet: Add missing irq free in error path.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Ditto authored and David S. Miller committed Jan 15, 2009
1 parent 4e704ee commit d7e094d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/fs_enet/fs_enet-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7e094d

Please sign in to comment.