+11
−4
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Even when kobject_init_and_add/kset_register fail, the kobject has been already initialized and the refcount set to 1. Thus it is necessary to release the kobject/kset, to avoid the memory associated with it hanging around forever. Signed-off-by:Riccardo Schirone <sirmy15@gmail.com> Signed-off-by:
Theodore Ts'o <tytso@mit.edu>