Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* [PATCH] video: s3c-fb: fix misleading kfree in remove function
@ 2011-06-08 10:50 Jingoo Han
  0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2011-06-08 10:50 UTC (permalink / raw)
  To: linux-fbdev

This patch fixes misleading kfree in remove function.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/video/s3c-fb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 0352afa..148e19d 100644
--- 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;
 }
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-08 10:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 10:50 [PATCH] video: s3c-fb: fix misleading kfree in remove function Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox