Commit 1778ca29 authored by Bruno Prémont's avatar Bruno Prémont Committed by Jiri Kosina

HID: picolcd: correct ordering of framebuffer freeing

Fix the free() ordering (which was never reached due to wrong check).
Signed-off-by: default avatarBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment