diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-11-14 13:42:38 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 10:33:55 +0100 |
commit | 1b85cd5d926273b22273770f610a025f907b6ba6 (patch) | |
tree | 67ce843f61d3e6e79555a4b6404eeae403915167 | |
parent | dde5bbd52a2896a4856fa579d97e310399d446d9 (diff) | |
download | linux-stable-1b85cd5d926273b22273770f610a025f907b6ba6.tar.gz linux-stable-1b85cd5d926273b22273770f610a025f907b6ba6.tar.bz2 linux-stable-1b85cd5d926273b22273770f610a025f907b6ba6.zip |
atm: horizon: Fix irq release error
[ Upstream commit bde533f2ea607cbbbe76ef8738b36243939a7bc2 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/atm/horizon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 527bbd595e37..d9b762a62e25 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c @@ -2804,7 +2804,7 @@ out: return err; out_free_irq: - free_irq(dev->irq, dev); + free_irq(irq, dev); out_free: kfree(dev); out_release: |