linux/drivers/infiniband/sw
Bob Pearson 8776618dbb RDMA/rxe: Fix incorrect rxe_put in error path
In rxe_send() a ref is taken on the qp to keep it alive until the
kfree_skb() has a chance to call the skb destructor rxe_skb_tx_dtor()
which drops the reference. If the packet has an incorrect protocol the
error path just calls kfree_skb() which will call the destructor which
will drop the ref. Currently the driver also calls rxe_put() which is
incorrect. Additionally since the packets sent to rxe_send() are under the
control of the driver and it only ever produces IPV4 or IPV6 packets the
simplest fix is to remove all the code in this block.

Link: https://lore.kernel.org/r/20240329145513.35381-12-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Fixes: 9eb7f8e44d ("IB/rxe: Move refcounting earlier in rxe_send()")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2024-04-22 16:54:33 -03:00
..
rdmavt IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rxe RDMA/rxe: Fix incorrect rxe_put in error path 2024-04-22 16:54:33 -03:00
siw RDMA/siw: Call orq_get_current if possible 2023-12-04 20:13:30 -04:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00