Skip to content

Commit

Permalink
drivers/video/igafb.c: introduce lost 'return'
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kulikov Vasiliy authored and Linus Torvalds committed Aug 11, 2010
1 parent c07fbfd commit 527dcf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/igafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ int __init igafb_init(void)
iounmap(info->screen_base);
kfree(par->mmap_map);
kfree(info);
return -ENODEV;
}

#ifdef CONFIG_SPARC
Expand Down

0 comments on commit 527dcf4

Please sign in to comment.