Commit 1778ca298b06ec86af5fc9603447c379cbfb477b

Authored by Bruno Prémont
Committed by Jiri Kosina
1 parent a106025015

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/hid/hid-picolcd.c
... ... @@ -550,8 +550,8 @@
550 550 may_release = !*ref_cnt;
551 551 mutex_unlock(&info->lock);
552 552 if (may_release) {
553   - framebuffer_release(info);
554 553 vfree((u8 *)info->fix.smem_start);
  554 + framebuffer_release(info);
555 555 }
556 556 }
557 557