]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/efa: Fix setting of wrong bit in get/set_feature commands
authorGal Pressman <galpress@amazon.com>
Tue, 12 May 2020 15:22:03 +0000 (18:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:53 +0000 (17:48 +0200)
commit51086af6e31e97c533266ef00e2f0cf6cbb835c3
tree89cf725f10b647a5b55271075d05411df5db037f
parent6c364afe71197d42584f17893a44c331f8d159b0
RDMA/efa: Fix setting of wrong bit in get/set_feature commands

[ Upstream commit cc8a635e24acf2793605f243c913c51b8c3702ab ]

When using a control buffer the ctrl_data bit should be set in order to
indicate the control buffer address is valid, not ctrl_data_indirect
which is used when the control buffer itself is indirect.

Fixes: e9c6c5373088 ("RDMA/efa: Add common command handlers")
Link: https://lore.kernel.org/r/20200512152204.93091-2-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/efa/efa_com_cmd.c