IB/core: Check for global flag when using ah_attr
authorDasaratharaman Chandramouli <[email protected]>
Sat, 29 Apr 2017 18:41:16 +0000 (14:41 -0400)
committerDoug Ledford <[email protected]>
Mon, 1 May 2017 18:32:43 +0000 (14:32 -0400)
commit4ba66093bdc6316cd2fe48e74a54bfc29599322f
tree88d7591433f9e9dc6a7e7b3aa734064c57d6ea16
parentcf0b9395d084c0710a10e3e4ee8d6b4c87dfcd2d
IB/core: Check for global flag when using ah_attr

Read/write grh fields of the ah_attr only if the
ah_flags field has the IB_AH_GRH bit enabled

Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Don Hiatt <[email protected]>
Reviewed-by: Sean Hefty <[email protected]>
Signed-off-by: Dasaratharaman Chandramouli <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_marshall.c