diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-10 21:02:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:12 -0400 |
commit | 527dcf4c5029b8dc791eb96fad01a12bb06e7850 (patch) | |
tree | 3b2ee7c81990b55667f8207a8ce86073f7d84287 /drivers/video | |
parent | c07fbfd17e614a76b194f371c5331e21e6cffb54 (diff) |
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 <segooon@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | 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 15d200109446..c4e6fc0301d4 100644 --- a/drivers/video/igafb.c +++ b/drivers/video/igafb.c | |||
@@ -531,6 +531,7 @@ int __init igafb_init(void) | |||
531 | iounmap(info->screen_base); | 531 | iounmap(info->screen_base); |
532 | kfree(par->mmap_map); | 532 | kfree(par->mmap_map); |
533 | kfree(info); | 533 | kfree(info); |
534 | return -ENODEV; | ||
534 | } | 535 | } |
535 | 536 | ||
536 | #ifdef CONFIG_SPARC | 537 | #ifdef CONFIG_SPARC |