atm: horizon: Fix irq release error
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 14 Nov 2017 08:12:38 +0000 (13:42 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 13:04:11 +0000 (22:04 +0900)
commitbde533f2ea607cbbbe76ef8738b36243939a7bc2
tree1128d687e556b8c467deb42124bebb10d8730ce8
parentc92eb77aff6a11c79059e2caffdd3baede218a9e
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: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/horizon.c