Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932095AbXHAKYo (ORCPT ); Wed, 1 Aug 2007 06:24:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758992AbXHAKYe (ORCPT ); Wed, 1 Aug 2007 06:24:34 -0400 Received: from twin.jikos.cz ([213.151.79.26]:42360 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757737AbXHAKYd (ORCPT ); Wed, 1 Aug 2007 06:24:33 -0400 Date: Wed, 1 Aug 2007 12:23:24 +0200 (CEST) From: Jiri Kosina To: Andrew Morton , Mariusz Kozlowski cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net, Greg KH Subject: Re: 2.6.23-rc1-mm2 In-Reply-To: <20070801011323.6e8d8259.akpm@linux-foundation.org> Message-ID: References: <20070731230932.a9459617.akpm@linux-foundation.org> <200708011002.30962.m.kozlowski@tuxland.pl> <20070801011323.6e8d8259.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2185 Lines: 65 (CCs adjusted) On Wed, 1 Aug 2007, Andrew Morton wrote: > > usb 2-1: USB disconnect, address 2 > > BUG: atomic counter underflow at: > > [] show_trace_log_lvl+0x1a/0x30 > > [] show_trace+0x12/0x14 > > [] dump_stack+0x15/0x17 > > [] __free_pages+0x50/0x52 > > [] free_pages+0x1f/0x21 > > [] dma_free_coherent+0x43/0x9c > > [] hcd_buffer_free+0x43/0x6a > > [] usb_buffer_free+0x23/0x29 > > [] hid_free_buffers+0x23/0x71 > > [] hid_disconnect+0xb0/0xc8 > > [] usb_unbind_interface+0x30/0x72 > > [] __device_release_driver+0x6a/0x92 > > [] device_release_driver+0x20/0x36 > > [] bus_remove_device+0x62/0x85 > > [] device_del+0x16d/0x27c > > [] usb_disable_device+0x7a/0xe2 > > [] usb_disconnect+0x94/0xde > > [] hub_thread+0x2fe/0xc1b > > [] kthread+0x36/0x58 > > [] kernel_thread_helper+0x7/0x14 > > ======================= > > uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma) Mariusz, I guess the patch below (which I have just added to my tree) fixes that, right? Thanks. diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 6e73934..0a1f2b5 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -877,9 +877,9 @@ fail: usb_free_urb(usbhid->urbin); usb_free_urb(usbhid->urbout); usb_free_urb(usbhid->urbctrl); + hid_free_buffers(dev, hid); kfree(usbhid); fail_no_usbhid: - hid_free_buffers(dev, hid); hid_free_device(hid); return NULL; @@ -913,9 +913,9 @@ static void hid_disconnect(struct usb_interface *intf) usb_free_urb(usbhid->urbin); usb_free_urb(usbhid->urbctrl); usb_free_urb(usbhid->urbout); - kfree(usbhid); hid_free_buffers(hid_to_usb_dev(hid), hid); + kfree(usbhid); hid_free_device(hid); } - 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/