summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/scsi/st.c')
-rw-r--r--kernel/drivers/scsi/st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/scsi/st.c b/kernel/drivers/scsi/st.c
index 9a1c34205..525ab4c1f 100644
--- a/kernel/drivers/scsi/st.c
+++ b/kernel/drivers/scsi/st.c
@@ -1274,9 +1274,9 @@ static int st_open(struct inode *inode, struct file *filp)
spin_lock(&st_use_lock);
STp->in_use = 0;
spin_unlock(&st_use_lock);
- scsi_tape_put(STp);
if (resumed)
scsi_autopm_put_device(STp->device);
+ scsi_tape_put(STp);
return retval;
}