Commit 7984899a authored by Kai Mäkisara's avatar Kai Mäkisara Committed by James Bottomley

[PATCH] SCSI tape driver fix for 2.5.51

The SCSI tape driver in 2.5.51 does not find any devices. The
following patch fixes this (and adds a missing unlocking call).

     Kai
parent 5882eeaf
...@@ -991,8 +991,10 @@ static int st_open(struct inode *inode, struct file *filp) ...@@ -991,8 +991,10 @@ static int st_open(struct inode *inode, struct file *filp)
return (-EBUSY); return (-EBUSY);
} }
if(!scsi_device_get(STp->device)) if(scsi_device_get(STp->device)) {
write_unlock(&st_dev_arr_lock);
return (-ENXIO); return (-ENXIO);
}
STp->in_use = 1; STp->in_use = 1;
write_unlock(&st_dev_arr_lock); write_unlock(&st_dev_arr_lock);
STp->rew_at_close = STp->autorew_dev = (minor(inode->i_rdev) & 0x80) == 0; STp->rew_at_close = STp->autorew_dev = (minor(inode->i_rdev) & 0x80) == 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment