fbdev: use framebuffer_release() for freeing fb_info structures
Use the framebuffer_release() for freeing fb_info structures allocated with framebuffer_alloc(). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
此提交包含在:
@@ -493,7 +493,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
|
||||
iounmap(par->cmap_adr);
|
||||
par->cmap_adr = NULL;
|
||||
iounmap(info->screen_base);
|
||||
kfree(info);
|
||||
framebuffer_release(info);
|
||||
release_mem_region(res_start, res_size);
|
||||
return;
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者