Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933176AbXJRTYA (ORCPT ); Thu, 18 Oct 2007 15:24:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758007AbXJRTXw (ORCPT ); Thu, 18 Oct 2007 15:23:52 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:42235 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752993AbXJRTXv (ORCPT ); Thu, 18 Oct 2007 15:23:51 -0400 Date: Thu, 18 Oct 2007 15:23:49 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Kay Sievers , Greg KH cc: Kernel development list Subject: BUG in: Driver core: convert block from raw kobjects to core devices Message-ID: 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: 1091 Lines: 34 This patch (as1004) fixes a refcounting bug in the development version of the block-device core. Signed-off-by: Alan Stern --- Kay, you have got to start testing your patches better! Finding and fixing refcount errors is _not_ one of my favorite ways to pass the time. For example, you could see what happens when you insert and unplug a USB flash disk a few times. Greg, you'll probably want to just fold this in with Kay's block-device.patch. Alan Stern Index: usb-2.6/fs/partitions/check.c =================================================================== --- usb-2.6.orig/fs/partitions/check.c +++ usb-2.6/fs/partitions/check.c @@ -516,5 +516,4 @@ void del_gendisk(struct gendisk *disk) sysfs_remove_link(&block_depr, disk->dev.bus_id); #endif device_del(&disk->dev); - put_device(&disk->dev); } - 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/