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

From: Patrick Mochel (mochel@osdl.org)
Date: Fri Jan 10 2003 - 10:22:21 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:33 EST