mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user