Skip to content

Commit fb9d78a

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/apm
Pull an APM fix from Jiri Kosina: "One deadlock/race fix from Niel that got introduced when we were moving away from freezer_*_count() to wait_event_freezable()." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/apm: APM: fix deadlock in APM_IOC_SUSPEND ioctl
2 parents 5d32c88 + f283d22 commit fb9d78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/apm-emulation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ apm_ioctl(struct file *filp, u_int cmd, u_long arg)
301301
* anything critical, chill a bit on each iteration.
302302
*/
303303
while (wait_event_freezable(apm_suspend_waitqueue,
304-
as->suspend_state == SUSPEND_DONE))
304+
as->suspend_state != SUSPEND_ACKED))
305305
msleep(10);
306306
break;
307307
case SUSPEND_ACKTO:

0 commit comments

Comments
 (0)