From: Arvind Yadav Date: Tue, 14 Nov 2017 08:12:38 +0000 (+0530) Subject: atm: horizon: Fix irq release error X-Git-Tag: v4.19~2192^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bde533f2ea607cbbbe76ef8738b36243939a7bc2;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 7e76b35..e121b84 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c @@ -2803,7 +2803,7 @@ out: return err; out_free_irq: - free_irq(dev->irq, dev); + free_irq(irq, dev); out_free: kfree(dev); out_release: