]> git.openfabrics.org - ~emulex/libocrdma.git/commitdiff
RDMA/libocrdma: fix library stack curruption
authorDevesh Sharma <devesh.sharma@emulex.com>
Fri, 31 Oct 2014 06:06:56 +0000 (11:36 +0530)
committerDevesh Sharma <devesh.sharma@emulex.com>
Fri, 31 Oct 2014 06:06:56 +0000 (11:36 +0530)
The library abi structures are not matching with the
upstream driver abi code. The mismatch is causing
stack curruption on some platforms while running
user application.

This patch has a fix for stack curruption.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
src/ocrdma_abi.h

index 88498a9d25363602a52608bd18551a7349a83115..ad7abd43f0a03f2bf93407702747ee6b6c2cf8dd 100644 (file)
@@ -74,7 +74,7 @@ struct ocrdma_alloc_ucontext_resp {
        uint32_t ah_tbl_len;
        uint32_t rqe_size;
        uint8_t fw_ver[32];
-       uint32_t rsvd1;
+       uint64_t rsvd1;
        uint64_t rsvd2;
 };
 
@@ -153,8 +153,7 @@ struct ocrdma_create_qp_uresp {
        uint32_t db_sq_offset;
        uint32_t db_rq_offset;
        uint32_t db_shift;
-       uint64_t rsvd2;
-       uint64_t rsvd3;
+       uint64_t rsvd[11]; /* 8*8 + 4*4 + 8 */
 };
 
 struct ocrdma_create_srq_cmd {