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>
This commit is contained in:
committed by
Linus Torvalds
parent
c07fbfd17e
commit
527dcf4c50
@@ -531,6 +531,7 @@ int __init igafb_init(void)
|
|||||||
iounmap(info->screen_base);
|
iounmap(info->screen_base);
|
||||||
kfree(par->mmap_map);
|
kfree(par->mmap_map);
|
||||||
kfree(info);
|
kfree(info);
|
||||||
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SPARC
|
#ifdef CONFIG_SPARC
|
||||||
|
Reference in New Issue
Block a user