|
@@ -1084,14 +1084,6 @@ qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
- ql84_mgmt = (struct qla_bsg_a84_mgmt *)((char *)bsg_job->request +
|
|
|
- sizeof(struct fc_bsg_request));
|
|
|
- if (!ql84_mgmt) {
|
|
|
- ql_log(ql_log_warn, vha, 0x703b,
|
|
|
- "MGMT header not provided, exiting.\n");
|
|
|
- return -EINVAL;
|
|
|
- }
|
|
|
-
|
|
|
mn = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &mn_dma);
|
|
|
if (!mn) {
|
|
|
ql_log(ql_log_warn, vha, 0x703c,
|
|
@@ -1102,7 +1094,7 @@ qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job)
|
|
|
memset(mn, 0, sizeof(struct access_chip_84xx));
|
|
|
mn->entry_type = ACCESS_CHIP_IOCB_TYPE;
|
|
|
mn->entry_count = 1;
|
|
|
-
|
|
|
+ ql84_mgmt = (void *)bsg_job->request + sizeof(struct fc_bsg_request);
|
|
|
switch (ql84_mgmt->mgmt.cmd) {
|
|
|
case QLA84_MGMT_READ_MEM:
|
|
|
case QLA84_MGMT_GET_INFO:
|