Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27214
b: refs/heads/master
c: 1607042
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jun 17, 2006
1 parent 776c378 commit a0932a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 553698f944ed715dfe023b4cef07601f0ce735f0
refs/heads/master: 16070428d389ff47aa3476b0911179ad90c640a2
6 changes: 4 additions & 2 deletions trunk/drivers/cdrom/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,9 +1009,9 @@ int cdrom_open(struct cdrom_device_info *cdi, struct inode *ip, struct file *fp)
if (fp->f_mode & FMODE_WRITE) {
ret = -EROFS;
if (cdrom_open_write(cdi))
goto err;
goto err_release;
if (!CDROM_CAN(CDC_RAM))
goto err;
goto err_release;
ret = 0;
cdi->media_written = 0;
}
Expand All @@ -1026,6 +1026,8 @@ int cdrom_open(struct cdrom_device_info *cdi, struct inode *ip, struct file *fp)
not be mounting, but opening with O_NONBLOCK */
check_disk_change(ip->i_bdev);
return 0;
err_release:
cdi->ops->release(cdi);
err:
cdi->use_count--;
return ret;
Expand Down

0 comments on commit a0932a9

Please sign in to comment.