From patchwork Mon Oct 25 20:56:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 267972 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9PKxgtq023142 for ; Mon, 25 Oct 2010 20:59:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758112Ab0JYU7k (ORCPT ); Mon, 25 Oct 2010 16:59:40 -0400 Received: from slow3-v.mail.gandi.net ([217.70.178.89]:33870 "EHLO slow3-v.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332Ab0JYU7j (ORCPT ); Mon, 25 Oct 2010 16:59:39 -0400 X-WhiteListed: mail was accepted with no delay X-WhiteListed: mail was accepted with no delay X-WhiteListed: mail was accepted with no delay X-WhiteListed: mail was accepted with no delay Received: from relay1-v.mail.gandi.net (relay1-v.mail.gandi.net [217.70.178.75]) by slow3-v.mail.gandi.net (Postfix) with ESMTP id 4256D859F9; Mon, 25 Oct 2010 22:58:25 +0200 (CEST) X-Originating-IP: 217.70.178.41 Received: from mfilter1-d.gandi.net (mfilter1-d.gandi.net [217.70.178.41]) by relay1-v.mail.gandi.net (Postfix) with ESMTP id 58C77362BA; Mon, 25 Oct 2010 22:58:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at gandi.net Received: from relay1-v.mail.gandi.net ([217.70.178.75]) by mfilter1-d.gandi.net (mfilter1-d.gandi.net [217.70.178.41]) (amavisd-new, port 10024) with ESMTP id P8g1enkraq38; Mon, 25 Oct 2010 22:58:01 +0200 (CEST) X-Originating-IP: 83.160.107.163 Received: from d4rwin.no-ip.org (unknown [83.160.107.163]) (Authenticated sender: matthias@kaehlcke.net) by relay1-v.mail.gandi.net (Postfix) with ESMTPSA id AAF22362B9; Mon, 25 Oct 2010 22:57:52 +0200 (CEST) Received: by d4rwin.no-ip.org (Postfix, from userid 1000) id 325EB4C22E; Mon, 25 Oct 2010 22:56:54 +0200 (CEST) Date: Mon, 25 Oct 2010 22:56:54 +0200 From: Matthias Kaehlcke To: Felipe Balbi , David Brownell Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH] USB ehci-omap: Remove second kfree() call on the same object Message-ID: <20101025205654.GN18700@darwin> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 25 Oct 2010 20:59:42 +0000 (UTC) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index e1da3c9..116ae28 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -734,7 +734,6 @@ err_uhh_ioremap: err_ioremap: usb_put_hcd(hcd); - kfree(omap); err_create_hcd: kfree(omap);