From patchwork Fri Jan 8 13:22:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 71777 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o08DMKBe013169 for ; Fri, 8 Jan 2010 13:22:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991Ab0AHNW3 (ORCPT ); Fri, 8 Jan 2010 08:22:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752973Ab0AHNW3 (ORCPT ); Fri, 8 Jan 2010 08:22:29 -0500 Received: from smtp.nokia.com ([192.100.105.134]:57051 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752943Ab0AHNW1 (ORCPT ); Fri, 8 Jan 2010 08:22:27 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o08DM6n1006227; Fri, 8 Jan 2010 07:22:27 -0600 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 8 Jan 2010 15:22:25 +0200 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 8 Jan 2010 15:22:24 +0200 Received: from localhost.localdomain (esdhcp04146.research.nokia.com [172.21.41.46]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o08DM1QM024564; Fri, 8 Jan 2010 15:22:20 +0200 From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Tomi Valkeinen Subject: [PATCH 12/15] OMAP: DSS2: OMAPFB: fix omapfb_free_fbmem() Date: Fri, 8 Jan 2010 15:22:46 +0200 Message-Id: <1262956969-1664-13-git-send-email-tomi.valkeinen@nokia.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1262956969-1664-12-git-send-email-tomi.valkeinen@nokia.com> References: <1262956969-1664-1-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-2-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-3-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-4-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-5-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-6-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-7-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-8-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-9-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-10-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-11-git-send-email-tomi.valkeinen@nokia.com> <1262956969-1664-12-git-send-email-tomi.valkeinen@nokia.com> X-OriginalArrivalTime: 08 Jan 2010 13:22:25.0670 (UTC) FILETIME=[9E607A60:01CA9065] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index ef29983..e61a75c 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1311,6 +1311,7 @@ static void omapfb_free_fbmem(struct fb_info *fbi) if (rg->vrfb.vaddr[0]) { iounmap(rg->vrfb.vaddr[0]); omap_vrfb_release_ctx(&rg->vrfb); + rg->vrfb.vaddr[0] = NULL; } }