[PATCH v3 01/10] kobject: introduce kobject_del_and_put()

Yangtao Li frank.li at vivo.com
Tue Apr 4 06:30:37 PDT 2023


> kobject_put() actually covers kobject removal automatically, which is
> single stage removal. So if you see the two called together, it is
> safe to kill kobject_del() directly.

If the reference count is not abnormal, kobject_put() does contain
what kobject_del() does.

Thx,
Yangtao



More information about the linux-mtd mailing list