RDMA/rxe: Fix coding error in rxe_recv.c
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 27 Jan 2021 21:45:01 +0000 (15:45 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 09:26:33 +0000 (10:26 +0100)
commit2e556ba37f1328d6a35a81fccb36470287a3d890
tree5af2b66f33d870562e6ce30e6b281cde6ca84076
parentd2ee0b2070cd3e3e449ab607b47cb84cee290db6
RDMA/rxe: Fix coding error in rxe_recv.c

[ Upstream commit 7d9ae80e31df57dd3253e1ec514f0000aa588a81 ]

check_type_state() in rxe_recv.c is written as if the type bits in the
packet opcode were a bit mask which is not correct. This patch corrects
this code to compare all 3 type bits to the required type.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20210127214500.3707-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_recv.c