Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109629
b: refs/heads/master
c: 70bb089
h: refs/heads/master
i:
  109627: 5561d01
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 5, 2008
1 parent 9ddcaad commit f8b0bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22f30168d296dbb54a21ebad44c9d735bca6f67b
refs/heads/master: 70bb08962ea9bd50797ae9f16b2493f5f7c65053
4 changes: 3 additions & 1 deletion trunk/drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ static int mmc_blk_open(struct inode *inode, struct file *filp)
check_disk_change(inode->i_bdev);
ret = 0;

if ((filp->f_mode & FMODE_WRITE) && md->read_only)
if ((filp->f_mode & FMODE_WRITE) && md->read_only) {
mmc_blk_put(md);
ret = -EROFS;
}
}

return ret;
Expand Down

0 comments on commit f8b0bbf

Please sign in to comment.