diff options
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index f60e41833f69..85d41eb67c0b 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -1691,7 +1691,7 @@ static int ub_bd_open(struct inode *inode, struct file *filp) | |||
1691 | * under some pretty murky conditions (a failure of READ CAPACITY). | 1691 | * under some pretty murky conditions (a failure of READ CAPACITY). |
1692 | * We may need it one day. | 1692 | * We may need it one day. |
1693 | */ | 1693 | */ |
1694 | if (lun->removable && lun->changed && !(filp->f_flags & O_NDELAY)) { | 1694 | if (lun->removable && lun->changed && !(filp->f_mode & FMODE_NDELAY)) { |
1695 | rc = -ENOMEDIUM; | 1695 | rc = -ENOMEDIUM; |
1696 | goto err_open; | 1696 | goto err_open; |
1697 | } | 1697 | } |