atm: horizon: Fix irq release error
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 14 Nov 2017 08:12:38 +0000 (13:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Dec 2017 09:33:55 +0000 (10:33 +0100)
commit1b85cd5d926273b22273770f610a025f907b6ba6
tree67ce843f61d3e6e79555a4b6404eeae403915167
parentdde5bbd52a2896a4856fa579d97e310399d446d9
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>
drivers/atm/horizon.c