Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fixes from James Bottomley:
"Two fairly simple fixes: one is a change that causes us to have a very
low queue depth leading to performance issues and the other is a null
deref occasionally in tapes thanks to use after put"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: fix host max depth checking for the 'queue_depth' sysfs interface
st: null pointer dereference panic caused by use after kref_put by st_open

+2 -2
+1 -1
drivers/scsi/scsi_sysfs.c
··· 859 859 860 860 depth = simple_strtoul(buf, NULL, 0); 861 861 862 - if (depth < 1 || depth > sht->can_queue) 862 + if (depth < 1 || depth > sdev->host->can_queue) 863 863 return -EINVAL; 864 864 865 865 retval = sht->change_queue_depth(sdev, depth);
+1 -1
drivers/scsi/st.c
··· 1329 1329 spin_lock(&st_use_lock); 1330 1330 STp->in_use = 0; 1331 1331 spin_unlock(&st_use_lock); 1332 - scsi_tape_put(STp); 1333 1332 if (resumed) 1334 1333 scsi_autopm_put_device(STp->device); 1334 + scsi_tape_put(STp); 1335 1335 return retval; 1336 1336 1337 1337 }