Explorar o código

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>
Bruno Prémont %!s(int64=15) %!d(string=hai) anos
pai
achega
1778ca298b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/hid/hid-picolcd.c

+ 1 - 1
drivers/hid/hid-picolcd.c

@@ -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);
 	}
 }