Re: [PATCH] powerpc: Remove double free
From: Greg Kroah-Hartman
Date: Wed May 15 2019 - 07:36:13 EST
On Wed, May 15, 2019 at 11:26:03AM +0200, Christophe Leroy wrote:
> kobject_put() released index_dir->kobj
Yes, but what is that kobject enclosed in?
> but who will release 'index' ?
The final kobject_put() will do that, see cacheinfo_create_index_dir()
for the details.
And please do not top-post, you lost all context.
greg k-h