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>
This commit is contained in:
parent
4e704ee3c2
commit
d7e094d421
1 changed files with 1 additions and 0 deletions
|
@ -795,6 +795,7 @@ static int fs_enet_open(struct net_device *dev)
|
||||||
|
|
||||||
err = fs_init_phy(dev);
|
err = fs_init_phy(dev);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
free_irq(fep->interrupt, dev);
|
||||||
if (fep->fpi->use_napi)
|
if (fep->fpi->use_napi)
|
||||||
napi_disable(&fep->napi);
|
napi_disable(&fep->napi);
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in a new issue