aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 202c1ed9abd7..5d74413f591a 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -775,7 +775,8 @@ static int sd_ioctl(struct inode * inode, struct file * filp,
775 case SCSI_IOCTL_GET_BUS_NUMBER: 775 case SCSI_IOCTL_GET_BUS_NUMBER:
776 return scsi_ioctl(sdp, cmd, p); 776 return scsi_ioctl(sdp, cmd, p);
777 default: 777 default:
778 error = scsi_cmd_ioctl(filp, disk->queue, disk, cmd, p); 778 error = scsi_cmd_ioctl(disk->queue, disk,
779 filp ? filp->f_mode : 0, cmd, p);
779 if (error != -ENOTTY) 780 if (error != -ENOTTY)
780 return error; 781 return error;
781 } 782 }