If ax_ei_open() failed we must free previously requested irq.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Kulikov Vasiliy 2010-07-08 23:42:40 -07:00 коммит произвёл David S. Miller
Родитель 3038bdb122
Коммит 9f1e758274
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -481,8 +481,10 @@ static int ax_open(struct net_device *dev)
return ret;
ret = ax_ei_open(dev);
if (ret)
if (ret) {
free_irq(dev->irq, dev);
return ret;
}
/* turn the phy on (if turned off) */