[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080613033929.GB17115@suse.de>
Date: Thu, 12 Jun 2008 20:39:29 -0700
From: Greg KH <gregkh@...e.de>
To: Li Zefan <lizf@...fujitsu.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kobject: should use kobject_put() in kset-example
On Fri, Jun 13, 2008 at 11:09:16AM +0800, Li Zefan wrote:
> We should call kobject_put() instead of kfree() if kobject_init_and_add()
> returns an error, shouldn't we? Don't set up a bad example ;)
Ah, good catch, you are right. I'll go add this to my queue, thanks for
the patch.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists