Merge "input: misc: hbtp_input: fix memory corruption in list_del_entry"
This commit is contained in:
commit
97c6cfb336
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue