提交 1778ca29 编写于 作者: B Bruno Prémont 提交者: Jiri Kosina

HID: picolcd: correct ordering of framebuffer freeing

Fix the free() ordering (which was never reached due to wrong check).
Signed-off-by: NBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 a1060250
...@@ -550,8 +550,8 @@ static void picolcd_fb_destroy(struct fb_info *info) ...@@ -550,8 +550,8 @@ static void picolcd_fb_destroy(struct fb_info *info)
may_release = !*ref_cnt; may_release = !*ref_cnt;
mutex_unlock(&info->lock); mutex_unlock(&info->lock);
if (may_release) { if (may_release) {
framebuffer_release(info);
vfree((u8 *)info->fix.smem_start); vfree((u8 *)info->fix.smem_start);
framebuffer_release(info);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册