ib/cm: fix layout of APR message
PATCH 1/1 ib/cm: fix layout of APR message
Add a missing 16 bit reserved field between ap_status and info fields.
--- drivers/infiniband/core/cm_msgs.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/core/cm_msgs.h +1 -0
@@ -771,6 +771,7 @@ struct cm_apr_msg {u8 info_length;u8 ap_status; +u16 rsvd;u8 info[IB_CM_APR_INFO_LENGTH ];u8 private_data[IB_CM_APR_PRIVATE_DATA_SIZE ];
Signature · 6 lines
1.7.8 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines
Add a missing 16 bit reserved field between
ap_statusand info fields.Signed-off-by Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/[email protected]>---
Thanks for catching this. Let's hope very few/no people are using APR in such a way that fixing this bug will bite them.
drivers/infiniband/core/cm_msgs.h struct cm_apr_msg { · line 774
Quoted 13 lines
drivers/infiniband/core/cm_msgs.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/infiniband/core/cm_msgs.h +1
-0@@ -771,6 +771,7 @@ struct cm_apr_msg {u8 info_length;u8 ap_status; +u16 rsvd;
For consistency with the rest of the file, please define this as __be16.
- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Sean
Thanks for catching this. Let's hope very few/no people are using APR in such a way that fixing this bug will bite them.
no in-tree users so... I tend to agree there's no other choice here.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html