diff options
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index e5a051577a5e..589cbbd9cd4f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -1285,7 +1285,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a | |||
1285 | struct loop_device *lo = inode->i_bdev->bd_disk->private_data; | 1285 | struct loop_device *lo = inode->i_bdev->bd_disk->private_data; |
1286 | int err; | 1286 | int err; |
1287 | 1287 | ||
1288 | lock_kernel(); | ||
1289 | switch(cmd) { | 1288 | switch(cmd) { |
1290 | case LOOP_SET_STATUS: | 1289 | case LOOP_SET_STATUS: |
1291 | mutex_lock(&lo->lo_ctl_mutex); | 1290 | mutex_lock(&lo->lo_ctl_mutex); |
@@ -1311,7 +1310,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a | |||
1311 | err = -ENOIOCTLCMD; | 1310 | err = -ENOIOCTLCMD; |
1312 | break; | 1311 | break; |
1313 | } | 1312 | } |
1314 | unlock_kernel(); | ||
1315 | return err; | 1313 | return err; |
1316 | } | 1314 | } |
1317 | #endif | 1315 | #endif |