On 2022-07-18 00:34, Christoph Hellwig wrote: > Once a kobject is initialized, the containing object should not be > directly freed. So delay initialization until it is added. Also > remove the kobject_del call as the last put will remove the kobject as > well. The explicitly delete isn't needed here, and dropping it will > simplify further fixes. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx> Logan