On Wed, Jul 06, 2022 at 07:18:48PM +0530, Kirti Wankhede wrote: >> - kobject_put(&type->kobj); > > This kobject_put is required here in error case, see description above > kobject_init_and_add(). And they are completely unrelated anyway, this should have never slipped in.