Skip to content

Commit fdc5a97

Browse files
hreineckeJames Bottomley
authored andcommitted
[SCSI] megaraid_sas_fusion: correctly pass queue info pointer
The pointer to the queue info structure is potentially a 64-bit value, so we should be using the correct macros to set the values in the init frame. Signed-off-by: Hannes Reinecke <hare@suse.de> Acked-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent 3576fab commit fdc5a97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/scsi/megaraid/megaraid_sas_fusion.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,10 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
644644
/* Convert capability to LE32 */
645645
cpu_to_le32s((u32 *)&init_frame->driver_operations.mfi_capabilities);
646646

647-
init_frame->queue_info_new_phys_addr_lo = cpu_to_le32((u32)ioc_init_handle);
647+
init_frame->queue_info_new_phys_addr_hi =
648+
cpu_to_le32(upper_32_bits(ioc_init_handle));
649+
init_frame->queue_info_new_phys_addr_lo =
650+
cpu_to_le32(lower_32_bits(ioc_init_handle));
648651
init_frame->data_xfer_len = cpu_to_le32(sizeof(struct MPI2_IOC_INIT_REQUEST));
649652

650653
req_desc =

0 commit comments

Comments
 (0)