diff options
author | James Bottomley <JBottomley@Parallels.com> | 2014-06-09 10:49:39 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-06-09 10:49:39 -0400 |
commit | b4c43993f448d0e25fe40690d9e9c81a8ebda623 (patch) | |
tree | 7cc19990b0b00226ce3063d956790368bfe62ada /drivers/message/fusion/mptctl.c | |
parent | 63ff05910d9652f8a0c4dbb6c7772cfca5364f12 (diff) | |
parent | e90b25fa40a43f63fc9a035c11ba9ca3e4e60949 (diff) |
Merge remote-tracking branch 'scsi-queue/drivers-for-3.16' into for-linus
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index dcc8385adeb3..8a050e885688 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -2432,9 +2432,9 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size) | |||
2432 | int rc, cim_rev; | 2432 | int rc, cim_rev; |
2433 | ToolboxIstwiReadWriteRequest_t *IstwiRWRequest; | 2433 | ToolboxIstwiReadWriteRequest_t *IstwiRWRequest; |
2434 | MPT_FRAME_HDR *mf = NULL; | 2434 | MPT_FRAME_HDR *mf = NULL; |
2435 | MPIHeader_t *mpi_hdr; | ||
2436 | unsigned long timeleft; | 2435 | unsigned long timeleft; |
2437 | int retval; | 2436 | int retval; |
2437 | u32 msgcontext; | ||
2438 | 2438 | ||
2439 | /* Reset long to int. Should affect IA64 and SPARC only | 2439 | /* Reset long to int. Should affect IA64 and SPARC only |
2440 | */ | 2440 | */ |
@@ -2581,11 +2581,11 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size) | |||
2581 | } | 2581 | } |
2582 | 2582 | ||
2583 | IstwiRWRequest = (ToolboxIstwiReadWriteRequest_t *)mf; | 2583 | IstwiRWRequest = (ToolboxIstwiReadWriteRequest_t *)mf; |
2584 | mpi_hdr = (MPIHeader_t *) mf; | 2584 | msgcontext = IstwiRWRequest->MsgContext; |
2585 | memset(IstwiRWRequest,0,sizeof(ToolboxIstwiReadWriteRequest_t)); | 2585 | memset(IstwiRWRequest,0,sizeof(ToolboxIstwiReadWriteRequest_t)); |
2586 | IstwiRWRequest->MsgContext = msgcontext; | ||
2586 | IstwiRWRequest->Function = MPI_FUNCTION_TOOLBOX; | 2587 | IstwiRWRequest->Function = MPI_FUNCTION_TOOLBOX; |
2587 | IstwiRWRequest->Tool = MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL; | 2588 | IstwiRWRequest->Tool = MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL; |
2588 | IstwiRWRequest->MsgContext = mpi_hdr->MsgContext; | ||
2589 | IstwiRWRequest->Flags = MPI_TB_ISTWI_FLAGS_READ; | 2589 | IstwiRWRequest->Flags = MPI_TB_ISTWI_FLAGS_READ; |
2590 | IstwiRWRequest->NumAddressBytes = 0x01; | 2590 | IstwiRWRequest->NumAddressBytes = 0x01; |
2591 | IstwiRWRequest->DataLength = cpu_to_le16(0x04); | 2591 | IstwiRWRequest->DataLength = cpu_to_le16(0x04); |