projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c07fbfd
)
drivers/video/igafb.c: introduce lost 'return'
author
Kulikov Vasiliy
<segooon@gmail.com>
Wed, 11 Aug 2010 01:02:47 +0000
(18:02 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:12 +0000
(08:59 -0700)
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>
drivers/video/igafb.c
patch
|
blob
|
history
diff --git
a/drivers/video/igafb.c
b/drivers/video/igafb.c
index 15d200109446aa577f77f0d12d9f2cd66d04f6f2..c4e6fc0301d41c13f574cc2b3e81d7539c31b87a 100644
(file)
--- 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