lkml.org 
[lkml]   [2010]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] video: igafb: introduce lost 'return'
    Date
    If iga_init() fails, code releases resources and continues to use it.
    It seems that after releasing resources 'return' should be.

    Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
    ---
    drivers/video/igafb.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/video/igafb.c b/drivers/video/igafb.c
    index 15d2001..c4e6fc0 100644
    --- a/drivers/video/igafb.c
    +++ b/drivers/video/igafb.c
    @@ -531,6 +531,7 @@ int __init igafb_init(void)
    iounmap(info->screen_base);
    kfree(par->mmap_map);
    kfree(info);
    + return -ENODEV;
    }

    #ifdef CONFIG_SPARC
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2010-07-31 18:37    [W:0.029 / U:0.884 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site