提交 bde533f2 编写于 作者: A Arvind Yadav 提交者: David S. Miller

atm: horizon: Fix irq release error

atm_dev_register() can fail here and passed parameters to free irq
which is not initialised. Initialization of 'dev->irq' happened after
the 'goto out_free_irq'. So using 'irq' insted of 'dev->irq' in
free_irq().
Signed-off-by: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c92eb77a
...@@ -2803,7 +2803,7 @@ static int hrz_probe(struct pci_dev *pci_dev, ...@@ -2803,7 +2803,7 @@ static int hrz_probe(struct pci_dev *pci_dev,
return err; return err;
out_free_irq: out_free_irq:
free_irq(dev->irq, dev); free_irq(irq, dev);
out_free: out_free:
kfree(dev); kfree(dev);
out_release: out_release:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册