Skip to content

Commit 685764b

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "This is a couple of small fixes: one is a potential uninitialised error variable in the alua code, potentially causing spurious failures and the other is a problem caused by the conversion of SCSI to hostwide tags which resulted in the qla1280 driver always failing in host initialisation" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: qla1280: Don't allocate 512kb of host tags scsi_dh_alua: uninitialized variable in alua_rtpg()
2 parents 4d8bbbf + 2bcbc81 commit 685764b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/scsi/device_handler/scsi_dh_alua.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg)
532532
return SCSI_DH_DEV_TEMP_BUSY;
533533

534534
retry:
535+
err = 0;
535536
retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags);
536537

537538
if (retval) {

drivers/scsi/qla1280.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4214,7 +4214,7 @@ static struct scsi_host_template qla1280_driver_template = {
42144214
.eh_bus_reset_handler = qla1280_eh_bus_reset,
42154215
.eh_host_reset_handler = qla1280_eh_adapter_reset,
42164216
.bios_param = qla1280_biosparam,
4217-
.can_queue = 0xfffff,
4217+
.can_queue = MAX_OUTSTANDING_COMMANDS,
42184218
.this_id = -1,
42194219
.sg_tablesize = SG_ALL,
42204220
.use_clustering = ENABLE_CLUSTERING,

0 commit comments

Comments
 (0)