diff options
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); |