diff options
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r-- | drivers/scsi/st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 98156a97c472..3e2b3717cb5c 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -977,7 +977,7 @@ static int check_tape(struct scsi_tape *STp, struct file *filp) | |||
977 | struct st_modedef *STm; | 977 | struct st_modedef *STm; |
978 | struct st_partstat *STps; | 978 | struct st_partstat *STps; |
979 | char *name = tape_name(STp); | 979 | char *name = tape_name(STp); |
980 | struct inode *inode = filp->f_path.dentry->d_inode; | 980 | struct inode *inode = file_inode(filp); |
981 | int mode = TAPE_MODE(inode); | 981 | int mode = TAPE_MODE(inode); |
982 | 982 | ||
983 | STp->ready = ST_READY; | 983 | STp->ready = ST_READY; |