]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Fix extra deref in rxe_rcv_mcast_pkt()
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 4 Mar 2021 19:20:49 +0000 (13:20 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 5 Mar 2021 18:15:18 +0000 (14:15 -0400)
commit5e4a7ccc965d951b0885875e903a32c6d4368573
tree152024c964748ef89561f30457e056675666a900
parent21e27ac82db637d2f48f07b3777aae8e7ca52613
RDMA/rxe: Fix extra deref in rxe_rcv_mcast_pkt()

rxe_rcv_mcast_pkt() dropped a reference to ib_device when no error
occurred causing an underflow on the reference counter.  This code is
cleaned up to be clearer and easier to read.

Fixes: 899aba891cab ("RDMA/rxe: Fix FIXME in rxe_udp_encap_recv()")
Link: https://lore.kernel.org/r/20210304192048.2958-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_recv.c