Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9609992d authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

Revert "driver core: fix race between creating/querying glue dir and its cleanup"



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: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent a4ced125
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment