Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20310
b: refs/heads/master
c: 01fd9fd
h: refs/heads/master
v: v3
  • Loading branch information
Peter Osterlund authored and Linus Torvalds committed Feb 15, 2006
1 parent ec5e77b commit 979b51d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 61a34937982cace51853b5dc88f86380e31998c0
refs/heads/master: 01fd9fda2ce462b44bafdac2fe6aacacf23531f2
7 changes: 3 additions & 4 deletions trunk/drivers/block/pktcdvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ static int pkt_open_write(struct pktcdvd_device *pd)

if ((ret = pkt_probe_settings(pd))) {
VPRINTK("pktcdvd: %s failed probe\n", pd->name);
return -EIO;
return -EROFS;
}

if ((ret = pkt_set_write_settings(pd))) {
Expand Down Expand Up @@ -2053,10 +2053,9 @@ static int pkt_open(struct inode *inode, struct file *file)
goto out_dec;
}
} else {
if (pkt_open_dev(pd, file->f_mode & FMODE_WRITE)) {
ret = -EIO;
ret = pkt_open_dev(pd, file->f_mode & FMODE_WRITE);
if (ret)
goto out_dec;
}
/*
* needed here as well, since ext2 (among others) may change
* the blocksize at mount time
Expand Down

0 comments on commit 979b51d

Please sign in to comment.