Re: [PATCH] [v2]RDMA: add checks for the status of nla_put in ib_nl_send_msg

2019-01-08 Thread Gal Pressman
On 05-Jan-19 19:09, Aditya Pakki wrote: > > static int ib_nl_get_path_rec_attrs_len(ib_sa_comp_mask comp_mask) > @@ -856,7 +873,10 @@ static int ib_nl_send_msg(struct ib_sa_query *query, > gfp_t gfp_mask) > } > > /* Add attributes */ > - ib_nl_set_path_rec_attrs(skb, query);

[PATCH] [v2]RDMA: add checks for the status of nla_put in ib_nl_send_msg

2019-01-05 Thread Aditya Pakki
The fix inserts multiple checks for nla_put, and changes the return type of ib_nl_set_path_rec_attrs() from void to int Signed-off-by: Aditya Pakki --- drivers/infiniband/core/sa_query.c | 56 -- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git