Commit e0eaed63 authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Initialize tmpbuf in request to NULL when creating new request.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 6f62c424
...@@ -95,6 +95,7 @@ static inline MPID_nem_ptl_req_area * REQ_PTL(MPID_Request *req) { ...@@ -95,6 +95,7 @@ static inline MPID_nem_ptl_req_area * REQ_PTL(MPID_Request *req) {
(sreq_)->dev.state = 0; \ (sreq_)->dev.state = 0; \
(sreq_)->dev.datatype_ptr = NULL; \ (sreq_)->dev.datatype_ptr = NULL; \
(sreq_)->dev.segment_ptr = NULL; \ (sreq_)->dev.segment_ptr = NULL; \
(sreq_)->dev.tmpbuf = NULL; \
\ \
MPID_nem_ptl_init_req(sreq_); \ MPID_nem_ptl_init_req(sreq_); \
} while (0) } while (0)
......
...@@ -353,6 +353,7 @@ extern MPIDI_Process_t MPIDI_Process; ...@@ -353,6 +353,7 @@ extern MPIDI_Process_t MPIDI_Process;
(sreq_)->dev.OnFinal = NULL; \ (sreq_)->dev.OnFinal = NULL; \
(sreq_)->dev.iov_count = 0; \ (sreq_)->dev.iov_count = 0; \
(sreq_)->dev.iov_offset = 0; \ (sreq_)->dev.iov_offset = 0; \
(sreq_)->dev.tmpbuf = NULL; \
MPIDI_Request_clear_dbg(sreq_); \ MPIDI_Request_clear_dbg(sreq_); \
} }
...@@ -386,6 +387,7 @@ extern MPIDI_Process_t MPIDI_Process; ...@@ -386,6 +387,7 @@ extern MPIDI_Process_t MPIDI_Process;
(rreq_)->dev.OnDataAvail = NULL; \ (rreq_)->dev.OnDataAvail = NULL; \
(rreq_)->dev.OnFinal = NULL; \ (rreq_)->dev.OnFinal = NULL; \
(rreq_)->dev.drop_data = FALSE; \ (rreq_)->dev.drop_data = FALSE; \
(rreq_)->dev.tmpbuf = NULL; \
MPIDI_CH3_REQUEST_INIT(rreq_);\ MPIDI_CH3_REQUEST_INIT(rreq_);\
} }
......
...@@ -95,6 +95,7 @@ MPID_Request * MPID_Request_create(void) ...@@ -95,6 +95,7 @@ MPID_Request * MPID_Request_create(void)
req->dev.user_buf = NULL; req->dev.user_buf = NULL;
req->dev.drop_data = FALSE; req->dev.drop_data = FALSE;
req->dev.stream_offset = 0; req->dev.stream_offset = 0;
req->dev.tmpbuf = NULL;
#ifdef MPIDI_CH3_REQUEST_INIT #ifdef MPIDI_CH3_REQUEST_INIT
MPIDI_CH3_REQUEST_INIT(req); MPIDI_CH3_REQUEST_INIT(req);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment