IB/mlx5: Fix coverity warning
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 28 Aug 2016 11:16:32 +0000 (14:16 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:15 +0000 (16:54 -0400)
commitdd063d0e6c78b53090a7b3593b0fe40e449b404a
tree01868539be67fb1fa06dbe2745b70c47f4c1f62e
parent5497adc63213e2b9b27c23e42a33e259d59bfe28
IB/mlx5: Fix coverity warning

Fix covertiy warning of passing "&flow_attr" to function
"create_flow_rule" which uses it as an array.

In addition pass flow attributes argument as const.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c