Commit 06f240e0 authored by David S. Miller's avatar David S. Miller

[PATCH] missing unlock_kernel

I discovered this while auditing a large part of the remaining
lock_kernel users in the 2.5.x tree.
parent aaf390a1
...@@ -412,9 +412,10 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void * arg) ...@@ -412,9 +412,10 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void * arg)
#ifdef CONFIG_SOFTWARE_SUSPEND #ifdef CONFIG_SOFTWARE_SUSPEND
case LINUX_REBOOT_CMD_SW_SUSPEND: case LINUX_REBOOT_CMD_SW_SUSPEND:
if(!software_suspend_enabled) if (!software_suspend_enabled) {
unlock_kernel();
return -EAGAIN; return -EAGAIN;
}
software_suspend(); software_suspend();
do_exit(0); do_exit(0);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment