projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e8684
)
video: s3c-fb: fix misleading kfree in remove function
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 9 Jun 2011 04:26:31 +0000
(
04:26
+0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 9 Jun 2011 05:59:48 +0000
(14:59 +0900)
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>
drivers/video/s3c-fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/s3c-fb.c
b/drivers/video/s3c-fb.c
index
0352afa
..
148e19d
100644
(file)
--- a/
drivers/video/s3c-fb.c
+++ b/
drivers/video/s3c-fb.c
@@
-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;
}