Commit bdb0f867 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by David S. Miller

wd: fix memory leak

Unmap mapped IO in wd_probe1() if register_netdev() failed.
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8aa06af4
......@@ -358,8 +358,10 @@ static int __init wd_probe1(struct net_device *dev, int ioaddr)
#endif
err = register_netdev(dev);
if (err)
if (err) {
free_irq(dev->irq, dev);
iounmap(ei_status.mem);
}
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment