lkml.org 
[lkml]   [2017]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 085/105] atm: horizon: Fix irq release error
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Arvind Yadav <arvind.yadav.cs@gmail.com>


    [ 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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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:

    \
     
     \ /
      Last update: 2017-12-15 10:50    [W:4.185 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site