Re: [PATCH RFC 1/2] kobject: add return value for kobject_put()
From: Greg KH
Date: Tue Oct 18 2022 - 09:00:52 EST
On Tue, Oct 18, 2022 at 09:14:31PM +0800, Yu Kuai wrote:
> The return value will be used in later patch to fix uaf for slave_dir
> and bd_holder_dir in block layer.
Then the user will be incorrect, this is not ok, you should never care
if you are the last "put" on an object at all. Hint, what happens right
after you call this and get the result?
sorry, but NAK.
greg k-h