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 3f25b8fa921d..871f3553987d 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -1329,9 +1329,9 @@ static int st_open(struct inode *inode, struct file *filp) | |||
1329 | spin_lock(&st_use_lock); | 1329 | spin_lock(&st_use_lock); |
1330 | STp->in_use = 0; | 1330 | STp->in_use = 0; |
1331 | spin_unlock(&st_use_lock); | 1331 | spin_unlock(&st_use_lock); |
1332 | scsi_tape_put(STp); | ||
1333 | if (resumed) | 1332 | if (resumed) |
1334 | scsi_autopm_put_device(STp->device); | 1333 | scsi_autopm_put_device(STp->device); |
1334 | scsi_tape_put(STp); | ||
1335 | return retval; | 1335 | return retval; |
1336 | 1336 | ||
1337 | } | 1337 | } |