Commit d71fe93
committed
pml/cm: fix buffer usage in MCA_PML_CM_HVY_SEND_REQUEST_BSEND_ALLOC()
In MCA_PML_CM_HVY_SEND_REQUEST_BSEND_ALLOC(), after call to
opal_convert_pack() will changed convertor's status, the convertor
need to be reset to original state.
This is achieved by calling opal_convertor_prepare_for_send(),
and it should be called with original send buffer provided by
application, which is sendreq->req_addr.
However, prior to this change, the function was called with
sendreq->req_buff, which is the temprary buffer used for send.
As a result, when the same request is used the 2nd time, wrong
data was copied to outgoing buffer, and caused memory corrupiton.
This patch addressed the issue.
Signed-off-by: Wei Zhang <wzam@amazon.com>1 parent 6cb2144 commit d71fe93
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
0 commit comments