Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40310
b: refs/heads/master
c: 413f732
h: refs/heads/master
v: v3
  • Loading branch information
Kai Makisara authored and James Bottomley committed Oct 25, 2006
1 parent a904ce6 commit 59bba71
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a24342b90c9c829fc5fea9ee01b127f81bca18ef
refs/heads/master: 413f73272090a69e35a03c938272ec661b1d3d4c
5 changes: 4 additions & 1 deletion trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,10 @@ static int st_open(struct inode *inode, struct file *filp)
goto err_out;
if ((filp->f_flags & O_NONBLOCK) == 0 &&
retval != CHKRES_READY) {
retval = (-EIO);
if (STp->ready == NO_TAPE)
retval = (-ENOMEDIUM);
else
retval = (-EIO);
goto err_out;
}
return 0;
Expand Down

0 comments on commit 59bba71

Please sign in to comment.