diff options
Diffstat (limited to 'drivers/scsi/scsi_ioctl.c')
-rw-r--r-- | drivers/scsi/scsi_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c index cc30fccc1a2e..840d96fe81bc 100644 --- a/drivers/scsi/scsi_ioctl.c +++ b/drivers/scsi/scsi_ioctl.c | |||
@@ -221,7 +221,7 @@ int scsi_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) | |||
221 | 221 | ||
222 | switch (cmd) { | 222 | switch (cmd) { |
223 | case SCSI_IOCTL_GET_IDLUN: | 223 | case SCSI_IOCTL_GET_IDLUN: |
224 | if (!access_ok(VERIFY_WRITE, arg, sizeof(struct scsi_idlun))) | 224 | if (!access_ok(arg, sizeof(struct scsi_idlun))) |
225 | return -EFAULT; | 225 | return -EFAULT; |
226 | 226 | ||
227 | __put_user((sdev->id & 0xff) | 227 | __put_user((sdev->id & 0xff) |