Merge "Revert "input: misc: hbtp_input: fix memory corruption in list""

This commit is contained in:
Linux Build Service Account 2017-08-11 16:23:49 -07:00 committed by Gerrit - the friendly Code Review server
commit 7ed24b74a1

View file

@ -249,10 +249,6 @@ 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);