Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bde533f2 authored by Arvind Yadav's avatar Arvind Yadav Committed by David S. Miller
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c92eb77a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2803,7 +2803,7 @@ static int hrz_probe(struct pci_dev *pci_dev,
	return err;

out_free_irq:
	free_irq(dev->irq, dev);
	free_irq(irq, dev);
out_free:
	kfree(dev);
out_release: