From patchwork Mon Dec 27 11:23:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomoya X-Patchwork-Id: 435211 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBRM5OBA030175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Dec 2010 22:05:45 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PXBEZ-0002OM-B7; Mon, 27 Dec 2010 11:27:23 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PXBEY-0002OC-7X for spi-devel-general@lists.sourceforge.net; Mon, 27 Dec 2010 11:27:22 +0000 X-ACL-Warn: Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.72) id 1PXBEW-00039N-0k for spi-devel-general@lists.sourceforge.net; Mon, 27 Dec 2010 11:27:22 +0000 X-Virus-Status: clean(F-Secure/virusgw_smtp/403/viruscheck1-00.private.hosting-pf.net) Received: from localhost.localdomain (113x35x143x224.ap113.ftth.ucom.ne.jp [113.35.143.224]) by sm-d311v.smileserver.ne.jp (mail) with ESMTPSA id AFB8896DA1; Mon, 27 Dec 2010 20:27:13 +0900 (JST) From: Tomoya MORINAGA To: David Brownell , Grant Likely , spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] spi_topcliff_pch: fix resource leak issue Date: Mon, 27 Dec 2010 20:23:47 +0900 Message-Id: <1293449027-3219-3-git-send-email-tomoya-linux@dsn.okisemi.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1293449027-3219-2-git-send-email-tomoya-linux@dsn.okisemi.com> References: <1293449027-3219-1-git-send-email-tomoya-linux@dsn.okisemi.com> <1293449027-3219-2-git-send-email-tomoya-linux@dsn.okisemi.com> X-Spam-Score: 0.2 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.2 AWL AWL: From: address is in the auto white-list X-Headers-End: 1PXBEW-00039N-0k Cc: Tomoya MORINAGA , kok.howg.ewe@intel.com, qi.wang@intel.com, joel.clark@intel.com, yong.y.wang@intel.com 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 (demeter1.kernel.org [140.211.167.41]); Mon, 27 Dec 2010 22:05:58 +0000 (UTC) diff --git a/drivers/spi/spi_topcliff_pch.c b/drivers/spi/spi_topcliff_pch.c index a796eaf..e806e31 100644 --- a/drivers/spi/spi_topcliff_pch.c +++ b/drivers/spi/spi_topcliff_pch.c @@ -1125,6 +1125,7 @@ static int pch_spi_probe(struct pci_dev *pdev, const struct pci_device_id *id) err_spi_reg_master: for (j = 0; j < i; j++) spi_unregister_master(master[j]); + pch_spi_free_resources(board_dat); err_spi_get_resources: err_spi_alloc_master: for (j = 0; j < i; j++)