Re: [Bug fix] delete kobject from list when kobject_add() fail

Patrick Mochel (mochel@osdl.org)
Fri, 10 Jan 2003 09:22:21 -0600 (CST)


On Fri, 10 Jan 2003 louis.zhuang@linux.co.intel.com wrote:

> Dear Mochel,
> I found there were still issues in failed kobject_add(). For example,
> if you try to register two kobjects with the same name into
> subsystem, the second registration will fail but the second will keep in
> the list of subsystem. Below patch might fix the bug. Please apply.

Thanks. I applied it, though slightly modified (I detest function names
with the '__' prefix). :)

-pat

-
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/