]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx4: Initialize ib_spec on the stack
authorAlaa Hleihel <alaa@mellanox.com>
Mon, 13 Apr 2020 13:22:35 +0000 (16:22 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Apr 2020 23:42:31 +0000 (20:42 -0300)
commit72d10773a28c701937c29f6702b0dfda9c047031
treed6f1b288a2cbffbc5d64a08010823ae64676cbcd
parent823243d95d2e80194c9783232204815bd2611fa2
RDMA/mlx4: Initialize ib_spec on the stack

Initialize ib_spec on the stack before using it, otherwise we will have
garbage values that will break creating default rules with invalid parsing
error.

Fixes: e311a0673b75 ("IB/mlx4: Add mechanism to support flow steering over IB links")
Link: https://lore.kernel.org/r/20200413132235.930642-1-leon@kernel.org
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/main.c