|
@@ -4272,8 +4272,8 @@ struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
|
|
|
spin_lock_init(&vha->cmd_list_lock);
|
|
|
init_waitqueue_head(&vha->fcport_waitQ);
|
|
|
|
|
|
- vha->gnl.size =
|
|
|
- sizeof(struct get_name_list_extended[ha->max_loop_id+1]);
|
|
|
+ vha->gnl.size = sizeof(struct get_name_list_extended) *
|
|
|
+ (ha->max_loop_id + 1);
|
|
|
vha->gnl.l = dma_alloc_coherent(&ha->pdev->dev,
|
|
|
vha->gnl.size, &vha->gnl.ldma, GFP_KERNEL);
|
|
|
if (!vha->gnl.l) {
|