提交 d7e094d4 编写于 作者: M Mike Ditto 提交者: David S. Miller

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: NMike Ditto <mditto@consentry.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4e704ee3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册