aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2009-03-05 14:07:03 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-10 10:27:54 -0400
commitc6b2fca8205dc33e3bb444835769e4ea4c6bc58d (patch)
treee632c7928dc1165978c01dc21e571d029ada7079 /drivers/scsi/qla2xxx/qla_init.c
parentee546b6e048586381462ce7bb51c7ddc03819619 (diff)
[SCSI] qla2xxx: Correct truncation in return-code status checking.
QLA_* return codes are 'int' in size. There were still several legacy check-points which assumed a return-code width of 8-bits. This could cause incorrect assumptions of 'good' status if a return of QLA_FUNCTION_TIMEOUT. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index e54ab2f10795..87f9abc71460 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -3435,7 +3435,7 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)
3435static int 3435static int
3436qla2x00_restart_isp(scsi_qla_host_t *vha) 3436qla2x00_restart_isp(scsi_qla_host_t *vha)
3437{ 3437{
3438 uint8_t status = 0; 3438 int status = 0;
3439 uint32_t wait_time; 3439 uint32_t wait_time;
3440 struct qla_hw_data *ha = vha->hw; 3440 struct qla_hw_data *ha = vha->hw;
3441 struct req_que *req = ha->req_q_map[0]; 3441 struct req_que *req = ha->req_q_map[0];