aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/user.c')
-rw-r--r--kernel/power/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c
index abd225550271..2d8b60a3c86b 100644
--- a/kernel/power/user.c
+++ b/kernel/power/user.c
@@ -216,7 +216,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
216 if (!capable(CAP_SYS_ADMIN)) 216 if (!capable(CAP_SYS_ADMIN))
217 return -EPERM; 217 return -EPERM;
218 218
219 if (!mutex_trylock(&pm_mutex)) 219 if (!mutex_trylock(&system_transition_mutex))
220 return -EBUSY; 220 return -EBUSY;
221 221
222 lock_device_hotplug(); 222 lock_device_hotplug();
@@ -394,7 +394,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
394 } 394 }
395 395
396 unlock_device_hotplug(); 396 unlock_device_hotplug();
397 mutex_unlock(&pm_mutex); 397 mutex_unlock(&system_transition_mutex);
398 398
399 return error; 399 return error;
400} 400}