From patchwork Tue Dec 15 23:44:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 68265 X-Patchwork-Delegate: tony@atomide.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 nBI4ixjP005715 for ; Fri, 18 Dec 2009 04:45:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758869AbZLOXpR (ORCPT ); Tue, 15 Dec 2009 18:45:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753873AbZLOXpQ (ORCPT ); Tue, 15 Dec 2009 18:45:16 -0500 Received: from smtp.nokia.com ([192.100.122.233]:19861 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbZLOXpP (ORCPT ); Tue, 15 Dec 2009 18:45:15 -0500 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nBFNimOB025693; Wed, 16 Dec 2009 01:45:12 +0200 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 01:44:46 +0200 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 01:44:46 +0200 Received: from localhost.localdomain (esdhcp04340.research.nokia.com [172.21.43.40]) by mgw-sa02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nBFNigSH021286; Wed, 16 Dec 2009 01:44:45 +0200 From: Felipe Balbi To: Linux OMAP Mailing List Cc: Tony Lindgren , Felipe Balbi Subject: [rft/rfc/patch-2.6.32-omap1+ 2/6] cbus: NULL global variable on exit Date: Wed, 16 Dec 2009 01:44:09 +0200 Message-Id: <1260920653-18503-3-git-send-email-felipe.balbi@nokia.com> X-Mailer: git-send-email 1.6.6.rc0 In-Reply-To: <1260920653-18503-1-git-send-email-felipe.balbi@nokia.com> References: <1260920653-18503-1-git-send-email-felipe.balbi@nokia.com> X-OriginalArrivalTime: 15 Dec 2009 23:44:46.0581 (UTC) FILETIME=[95615250:01CA7DE0] 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/cbus/cbus.c b/drivers/cbus/cbus.c index c0b4248..f454e77 100644 --- a/drivers/cbus/cbus.c +++ b/drivers/cbus/cbus.c @@ -279,7 +279,9 @@ static void __exit cbus_bus_remove(struct platform_device *pdev) gpio_free(chost->dat_gpio); gpio_free(chost->clk_gpio); + kfree(chost); + cbus_host = NULL; } static struct platform_driver cbus_driver = {