From patchwork Mon Apr 12 09:56:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Tereshonkov X-Patchwork-Id: 92023 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3C9vFMc027733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Apr 2010 09:57:52 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1O1GOJ-0006nL-E5; Mon, 12 Apr 2010 09:57:15 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1O1GOH-0006nG-Kk for spi-devel-general@lists.sourceforge.net; Mon, 12 Apr 2010 09:57:13 +0000 Received-SPF: pass (sfi-mx-4.v28.ch3.sourceforge.com: domain of nokia.com designates 192.100.122.230 as permitted sender) client-ip=192.100.122.230; envelope-from=roman.tereshonkov@nokia.com; helo=mgw-mx03.nokia.com; Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1O1GOG-0007Eo-27 for spi-devel-general@lists.sourceforge.net; Mon, 12 Apr 2010 09:57:13 +0000 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3C9umIg024870; Mon, 12 Apr 2010 12:57:03 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Apr 2010 12:56:51 +0300 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Apr 2010 12:56:38 +0300 Received: from localhost.localdomain (ramses.research.nokia.com [172.21.51.130]) by mgw-sa02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3C9uZ6K029354; Mon, 12 Apr 2010 12:56:36 +0300 From: Roman Tereshonkov To: spi-devel-general@lists.sourceforge.net Date: Mon, 12 Apr 2010 12:56:35 +0300 Message-Id: <1271066195-17664-1-git-send-email-roman.tereshonkov@nokia.com> X-Mailer: git-send-email 1.6.2.rc1.3.g81d3f X-OriginalArrivalTime: 12 Apr 2010 09:56:38.0058 (UTC) FILETIME=[7174E8A0:01CADA26] X-Nokia-AV: Clean X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1O1GOG-0007Eo-27 Cc: glikely@secretlab.ca, Roman Tereshonkov Subject: [spi-devel-general] [PATCH] spi: spi_device memory should be released instead of device. X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Apr 2010 09:57:52 +0000 (UTC) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 9ffb0fd..5ec8e5f 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -41,7 +41,7 @@ static void spidev_release(struct device *dev) spi->master->cleanup(spi); spi_master_put(spi->master); - kfree(dev); + kfree(spi); } static ssize_t