OSDN Git Service

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)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 5 Feb 2021 17:43:00 +0000 (13:43 -0400)
commit7d9ae80e31df57dd3253e1ec514f0000aa588a81
treeb2e206bebe52f1cd65553c154b4f292cf2ab1cae
parent131796524fa346553d9a325ed77bbee0b63d0ca9
RDMA/rxe: Fix coding error in rxe_recv.c

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>
drivers/infiniband/sw/rxe/rxe_recv.c