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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c
index 63368163e98d..72e8f4fd616d 100644
--- a/kernel/power/user.c
+++ b/kernel/power/user.c
@@ -201,6 +201,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
201 if (!mutex_trylock(&pm_mutex)) 201 if (!mutex_trylock(&pm_mutex))
202 return -EBUSY; 202 return -EBUSY;
203 203
204 lock_device_hotplug();
204 data = filp->private_data; 205 data = filp->private_data;
205 206
206 switch (cmd) { 207 switch (cmd) {
@@ -373,6 +374,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
373 374
374 } 375 }
375 376
377 unlock_device_hotplug();
376 mutex_unlock(&pm_mutex); 378 mutex_unlock(&pm_mutex);
377 379
378 return error; 380 return error;