From: Kulikov Vasiliy Date: Wed, 11 Aug 2010 01:02:47 +0000 (-0700) Subject: drivers/video/igafb.c: introduce lost 'return' X-Git-Tag: v2.6.36-rc1~163 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=527dcf4c5029b8dc791eb96fad01a12bb06e7850;p=platform%2Fupstream%2Fkernel-adaptation-pc.git drivers/video/igafb.c: introduce lost 'return' 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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