|
@@ -3136,7 +3136,7 @@ bfad_im_bsg_vendor_request(struct bsg_job *job)
|
|
struct fc_bsg_reply *bsg_reply = job->reply;
|
|
struct fc_bsg_reply *bsg_reply = job->reply;
|
|
uint32_t vendor_cmd = bsg_request->rqst_data.h_vendor.vendor_cmd[0];
|
|
uint32_t vendor_cmd = bsg_request->rqst_data.h_vendor.vendor_cmd[0];
|
|
struct Scsi_Host *shost = fc_bsg_to_shost(job);
|
|
struct Scsi_Host *shost = fc_bsg_to_shost(job);
|
|
- struct bfad_im_port_s *im_port = shost->hostdata[0];
|
|
|
|
|
|
+ struct bfad_im_port_s *im_port = bfad_get_im_port(shost);
|
|
struct bfad_s *bfad = im_port->bfad;
|
|
struct bfad_s *bfad = im_port->bfad;
|
|
void *payload_kbuf;
|
|
void *payload_kbuf;
|
|
int rc = -EINVAL;
|
|
int rc = -EINVAL;
|
|
@@ -3352,7 +3352,7 @@ bfad_im_bsg_els_ct_request(struct bsg_job *job)
|
|
{
|
|
{
|
|
struct bfa_bsg_data *bsg_data;
|
|
struct bfa_bsg_data *bsg_data;
|
|
struct Scsi_Host *shost = fc_bsg_to_shost(job);
|
|
struct Scsi_Host *shost = fc_bsg_to_shost(job);
|
|
- struct bfad_im_port_s *im_port = shost->hostdata[0];
|
|
|
|
|
|
+ struct bfad_im_port_s *im_port = bfad_get_im_port(shost);
|
|
struct bfad_s *bfad = im_port->bfad;
|
|
struct bfad_s *bfad = im_port->bfad;
|
|
bfa_bsg_fcpt_t *bsg_fcpt;
|
|
bfa_bsg_fcpt_t *bsg_fcpt;
|
|
struct bfad_fcxp *drv_fcxp;
|
|
struct bfad_fcxp *drv_fcxp;
|