From 078e1b774c5f010ea1c5e4d21525ccd9e82c578b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 3 Sep 2021 02:34:47 +0000 Subject: [PATCH] qla2x00t/qla_bsg: Fix error codes Use the proper error codes when reporting a BSG error. The DID_* codes are the codes that are shifted left 16 bits while the DRIVER_* codes must be shifted left 24 bits. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9499 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_bsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qla2x00t/qla_bsg.c b/qla2x00t/qla_bsg.c index 3239e77a7..284747c54 100644 --- a/qla2x00t/qla_bsg.c +++ b/qla2x00t/qla_bsg.c @@ -308,7 +308,7 @@ qla2x00_process_els(struct bsg_job *bsg_job) srb_t *sp; const char *type; int req_sg_cnt, rsp_sg_cnt; - int rval = (DRIVER_ERROR << 16); + int rval = DID_ERROR << 16; uint16_t nextlid = 0; #ifdef __COVERITY__ @@ -495,7 +495,7 @@ qla2x00_process_ct(struct bsg_job *bsg_job) struct fc_bsg_request *bsg_request = bsg_job->request; scsi_qla_host_t *vha = shost_priv(host); struct qla_hw_data *ha = vha->hw; - int rval = (DRIVER_ERROR << 16); + int rval = DID_ERROR << 16; int req_sg_cnt, rsp_sg_cnt; uint16_t loop_id; struct fc_port *fcport;