diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-07-31 23:43:58 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-31 23:43:58 -0700 |
| commit | 97c6cfb336bca78a00daefa3c522a2a4e4957fd1 (patch) | |
| tree | 858b5551e7aa81b72e975f788facea500c2661a2 | |
| parent | 6be8573eca3284a53c89cd4e0f613223db5b9224 (diff) | |
| parent | fc375bad6a4b62a755d57d63bcea5b9b78c62385 (diff) | |
Merge "input: misc: hbtp_input: fix memory corruption in list_del_entry"
| -rw-r--r-- | drivers/input/misc/hbtp_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/misc/hbtp_input.c b/drivers/input/misc/hbtp_input.c index 56f2732334db..30da797a85dc 100644 --- a/drivers/input/misc/hbtp_input.c +++ b/drivers/input/misc/hbtp_input.c @@ -249,6 +249,10 @@ static int hbtp_input_release(struct inode *inode, struct file *file) return -ENOTTY; } hbtp->count--; + if (!completion_done(&hbtp->power_suspend_sig)) + complete(&hbtp->power_suspend_sig); + if (!completion_done(&hbtp->power_resume_sig)) + complete(&hbtp->power_resume_sig); if (hbtp->power_sig_enabled) hbtp->power_sig_enabled = false; mutex_unlock(&hbtp->mutex); |
