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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 7c4d2e68df1c..202c1ed9abd7 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -640,7 +640,7 @@ static int sd_open(struct inode *inode, struct file *filp)
640 */ 640 */
641 retval = -ENOMEDIUM; 641 retval = -ENOMEDIUM;
642 if (sdev->removable && !sdkp->media_present && 642 if (sdev->removable && !sdkp->media_present &&
643 !(filp->f_flags & O_NDELAY)) 643 !(filp->f_mode & FMODE_NDELAY))
644 goto error_out; 644 goto error_out;
645 645
646 /* 646 /*