Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933379AbXK2WQn (ORCPT ); Thu, 29 Nov 2007 17:16:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932735AbXK2WQa (ORCPT ); Thu, 29 Nov 2007 17:16:30 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:38216 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932728AbXK2WQ3 (ORCPT ); Thu, 29 Nov 2007 17:16:29 -0500 Date: Thu, 29 Nov 2007 17:16:28 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Greg KH cc: Cornelia Huck , Kay Sievers , Kernel development list , Jonathan Corbet , Randy Dunlap Subject: Re: kobject_init rewrite In-Reply-To: <20071129215304.GA5043@kroah.com> 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: 670 Lines: 17 On Thu, 29 Nov 2007, Greg KH wrote: > Ok, how about this function. If it errors out, it is free to just call > kfree() on the kobject. Seems simple enough to me, any objections? If > not, I'll go through and fix up the whole tree... Looks good, _provided_ you also get rid of kobject_register(). Which you pretty much would have to do anyway, since it doesn't accept the ktype or the name as an argument. 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/