Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262984AbTFKQ7G (ORCPT ); Wed, 11 Jun 2003 12:59:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263077AbTFKQ7G (ORCPT ); Wed, 11 Jun 2003 12:59:06 -0400 Received: from ida.rowland.org ([192.131.102.52]:5124 "HELO ida.rowland.org") by vger.kernel.org with SMTP id S262984AbTFKQ7F (ORCPT ); Wed, 11 Jun 2003 12:59:05 -0400 Date: Wed, 11 Jun 2003 13:12:47 -0400 (EDT) From: Alan Stern X-X-Sender: stern@ida.rowland.org To: Greg KH cc: linux-kernel@vger.kernel.org Subject: BUG in driver model class.c 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: 779 Lines: 22 Greg: There is a bug in drivers/base/class.c in 2.5.70. Near the start of the routine class_device_add() are the lines if (class_dev->dev) get_device(class_dev->dev); But there's nothing to undo this get_device, either in the error return part of class_device_add() or in class_device_del(). I assume that either this get_device() doesn't belong there or else there should be corresponding put_device() calls in the other two spots. Whichever is the case, it should be easy for you to fix. Alan Stern - 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/