From patchwork Thu Jun 9 04:26:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 863252 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p594XTlF027735 for ; Thu, 9 Jun 2011 04:33:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750960Ab1FIEd3 (ORCPT ); Thu, 9 Jun 2011 00:33:29 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:60483 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914Ab1FIEd2 (ORCPT ); Thu, 9 Jun 2011 00:33:28 -0400 Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.72) (envelope-from ) id 1QUWvt-0001Hz-Qn; Thu, 09 Jun 2011 06:33:25 +0200 Received: from [12.23.102.184] (helo=starstone.dsn.sec.samsung.com) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1QUVuo-0007v5-Ay; Thu, 09 Jun 2011 12:28:14 +0900 From: Jingoo Han To: Paul Mundt Cc: linux-fbdev@vger.kernel.org, Ben Dooks , Jingoo Han Subject: [PATCH] [resend] video: s3c-fb: fix misleading kfree in remove function Date: Thu, 9 Jun 2011 13:26:31 +0900 Message-Id: <1307593591-4507-1-git-send-email-jg1.han@samsung.com> X-Mailer: git-send-email 1.7.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 09 Jun 2011 04:33:29 +0000 (UTC) This patch fixes misleading kfree in remove function. Signed-off-by: Jingoo Han --- 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; }