[PATCH 1/3] video: s3c-fb: fix misleading kfree in remove function

Subsystems: framebuffer layer, the rest

STALE5565d

2 messages, 1 author, 2011-06-08 · open the first message on its own page

[PATCH 1/3] video: s3c-fb: fix misleading kfree in remove function

From: Jingoo Han <hidden>
Date: 2011-06-08 10:43:17

This patch fixes misleading kfree in remove function.

Signed-off-by: Jingoo Han <redacted>
---
 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

Re: [PATCH 1/3] video: s3c-fb: fix misleading kfree in remove function

From: JinGoo Han <hidden>
Date: 2011-06-08 10:58:01

------- Original Message -------
Sender : JinGoo Han[off-list ref] 
Date   : Jun 08, 2011 19:43 (GMT+09:00)
Title  : [PATCH 1/3] video: s3c-fb: fix misleading kfree in remove function
Sorry. [PATCH 1/3] is typo.
I have just sent the patch '[PATCH] video: s3c-fb: fix misleading kfree in remove function'.
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±ıöİzÿâ�Ø^n‡r¡ö¦zË�ëh™¨è­Ú&£ûàz¿äz¹Ş—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿï�êÿ‘êçz_è®æj:+v‰¨ş)ߣøm
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help