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 10:38:04 +0000 (11:38 +0100)
commitd464194f6e47f1ef005a2e0d7b51ebb9de8e3e95
treebb661d254826d04a9028fdf6ad8cc499602958fb
parent5132b4f248743f07f079633185bcd25407a079aa
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