Skip to content

Commit

Permalink
video: s3c-fb: fix misleading kfree in remove function
Browse files Browse the repository at this point in the history
This patch fixes misleading kfree in remove function.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Jingoo Han authored and Paul Mundt committed Jun 9, 2011
1 parent 06e8684 commit 72ba4cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1487,11 +1487,10 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)

release_mem_region(sfb->regs_res->start, resource_size(sfb->regs_res));

kfree(sfb);

pm_runtime_put_sync(sfb->dev);
pm_runtime_disable(sfb->dev);

kfree(sfb);
return 0;
}

Expand Down

0 comments on commit 72ba4cb

Please sign in to comment.