mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
HID: picolcd: correct ordering of framebuffer freeing
Fix the free() ordering (which was never reached due to wrong check). Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
a106025015
commit
1778ca298b
@ -550,8 +550,8 @@ static void picolcd_fb_destroy(struct fb_info *info)
|
||||
may_release = !*ref_cnt;
|
||||
mutex_unlock(&info->lock);
|
||||
if (may_release) {
|
||||
framebuffer_release(info);
|
||||
vfree((u8 *)info->fix.smem_start);
|
||||
framebuffer_release(info);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user