+10
−29
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This reverts 'commit 309a2c6f ("driver core: fix race between creating/querying glue dir and its cleanup")'. Issue is, if we fail the 'live_in_glue_dir' check on the dev->kobj, we'll return NULL and subsequently fail to kobject_put the dev->kobj.parent in the cleanup_glue_dir function, leaking a reference. In upstream, this patch is modified to fix the leakage of glue_dir parent. Get that change to avoid the kobject leakage. Change-Id: I33f1c0c9471b97a9c77aa7ac068c01be95b0df94 Signed-off-by:Lingutla Chandrasekhar <clingutla@codeaurora.org>