Messages in this thread | | | Date | Fri, 27 Feb 2004 12:17:44 -0800 | From | Greg KH <> | Subject | Re: Question about (or bug in?) the kobject implementation |
| |
On Fri, Feb 27, 2004 at 03:06:32PM -0500, Alan Stern wrote: > On Fri, 27 Feb 2004, Greg KH wrote: > > Seriously, once kobject_del() is called, you can't safely call > > kobject_get() anymore on that object. > > Are you worried about the possibility of the refcount dropping to 0 and > the cleanup starting but then kobject_get() increasing the refcount again?
Exactly, that is where the problem could happen.
thanks,
greg k-h - 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/
| |