Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755046Ab3E0Ja4 (ORCPT ); Mon, 27 May 2013 05:30:56 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:45017 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754641Ab3E0Jaz convert rfc822-to-8bit (ORCPT ); Mon, 27 May 2013 05:30:55 -0400 From: "Cherian, George" To: "linux-usb@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Balbi, Felipe" , "gregkh@linuxfoundation.org" Subject: RE: [PATCH 1/4] usb: dwc3: gadget: free trb pool only from epnum 2 Thread-Topic: [PATCH 1/4] usb: dwc3: gadget: free trb pool only from epnum 2 Thread-Index: AQHOWrlm2TasGCDxhEGL78RrJBXuH5kYxBmQ Date: Mon, 27 May 2013 09:30:49 +0000 Message-ID: References: <1369645549-14867-1-git-send-email-george.cherian@ti.com> In-Reply-To: <1369645549-14867-1-git-send-email-george.cherian@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.24.170.142] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 27 > -----Original Message----- > From: Cherian, George > Sent: Monday, May 27, 2013 2:36 PM > To: linux-usb@vger.kernel.org; linux-omap@vger.kernel.org; linux- > kernel@vger.kernel.org > Cc: Balbi, Felipe; gregkh@linuxfoundation.org; Cherian, George > Subject: [PATCH 1/4] usb: dwc3: gadget: free trb pool only from epnum 2 Please read [PATCH 1/4] as [PATCH 1/1]. > > we never allocate a TRB pool for physical endpoints > 0 and 1 so trying to free it (a invalid TRB pool pointer) > will lead us in a warning while removing dwc3.ko module. > > In order to fix the situation, all we have to do is skip > dwc3_free_trb_pool() for physical endpoints 0 and 1 just > as we while deleting endpoints from the endpoints list. > > Signed-off-by: George Cherian > Signed-off-by: Felipe Balbi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/