Re: Ref-count problem in kset_find_obj?
From: Patrick Mochel
Date: Wed Oct 29 2003 - 19:16:02 EST
> The reference count of the kobject to be returned is not
> increased before the semaphore is released. A kobject_del/unlink
> could remove the object before the called of kset_find_obj is
> able to increase the reference count. This makes kset_find_obj
> more or less unusable, doesn't it?
Yes, you're right. The function is pretty much unused, and I don't have a
problem removing it, provided we can fix up the one user
(arch/i386/kernel/edd.c). Unless of course, you're planning on using it..
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/