From patchwork Wed Dec 16 13:36:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 68359 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 nBI4ixo7005715 for ; Fri, 18 Dec 2009 04:46:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933834AbZLPNgT (ORCPT ); Wed, 16 Dec 2009 08:36:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933832AbZLPNgT (ORCPT ); Wed, 16 Dec 2009 08:36:19 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:48688 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933801AbZLPNgS (ORCPT ); Wed, 16 Dec 2009 08:36:18 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nBGDaDRZ010321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Dec 2009 07:36:16 -0600 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nBGDaB9k015775; Wed, 16 Dec 2009 19:06:12 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id nBGDaBQ4028569; Wed, 16 Dec 2009 19:06:11 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id nBGDaAVr028566; Wed, 16 Dec 2009 19:06:10 +0530 From: Ajay Kumar Gupta To: linux-omap@vger.kernel.org Cc: felipe.balbi@nokia.com, Ajay Kumar Gupta Subject: [PATCH] ehci: fix missing kfree in remove path also Date: Wed, 16 Dec 2009 19:06:10 +0530 Message-Id: <1260970570-28536-1-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 74d07f4..2460f0d 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -681,6 +681,7 @@ static int ehci_hcd_omap_remove(struct platform_device *pdev) iounmap(omap->tll_base); iounmap(omap->uhh_base); usb_put_hcd(hcd); + kfree(omap); return 0; }