]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
atm: horizon: Fix irq release error
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 14 Nov 2017 08:12:38 +0000 (13:42 +0530)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:29 +0000 (12:55 -0500)
commit0770152f94381de6750af9bc809f8a5f81e4909a
tree476d05129570ba610f7d9f081d8956c8f606c069
parent9cdc7a37fae11c28727a7455c6469c44bfd585a6
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@microsoft.com>
drivers/atm/horizon.c