Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH] ib/cm: fix layout of APR message
@ 2011-12-19  7:47 Eli Cohen
  2011-12-19 19:10 ` Hefty, Sean
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Cohen @ 2011-12-19  7:47 UTC (permalink / raw)
  To: roland-BHEL68pLQRGGvPXPguhicg; +Cc: RDMA list

Add a missing 16 bit reserved field between ap_status and info fields.

Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 drivers/infiniband/core/cm_msgs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/core/cm_msgs.h b/drivers/infiniband/core/cm_msgs.h
index 7e63c08..686ac1a 100644
--- a/drivers/infiniband/core/cm_msgs.h
+++ b/drivers/infiniband/core/cm_msgs.h
@@ -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];
-- 
1.7.8

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] ib/cm: fix layout of APR message
  2011-12-19  7:47 [PATCH] ib/cm: fix layout of APR message Eli Cohen
@ 2011-12-19 19:10 ` Hefty, Sean
       [not found]   ` <1828884A29C6694DAF28B7E6B8A8237325661791-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Hefty, Sean @ 2011-12-19 19:10 UTC (permalink / raw)
  To: Eli Cohen, roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org; +Cc: RDMA list

> Add a missing 16 bit reserved field between ap_status and info fields.
> 
> Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---

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 |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/infiniband/core/cm_msgs.h
> b/drivers/infiniband/core/cm_msgs.h
> index 7e63c08..686ac1a 100644
> --- a/drivers/infiniband/core/cm_msgs.h
> +++ b/drivers/infiniband/core/cm_msgs.h
> @@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ib/cm: fix layout of APR message
       [not found]   ` <1828884A29C6694DAF28B7E6B8A8237325661791-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2011-12-20  6:44     ` Or Gerlitz
  0 siblings, 0 replies; 3+ messages in thread
From: Or Gerlitz @ 2011-12-20  6:44 UTC (permalink / raw)
  To: Hefty, Sean; +Cc: Eli Cohen, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On 12/19/2011 9:10 PM, Hefty, Sean wrote:
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-20  6:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19  7:47 [PATCH] ib/cm: fix layout of APR message Eli Cohen
2011-12-19 19:10 ` Hefty, Sean
     [not found]   ` <1828884A29C6694DAF28B7E6B8A8237325661791-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-12-20  6:44     ` Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox