VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Bob Pearson <rpearsonhpe@gmail.com> 2021-08-13 16:06:26 -0500 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-09-03 10:22:52 +0200 commit: a35de1e71b68591c0855024973d27c196a1a26c2 parent: 9413a11e77ebd25faae62089b76ef3b8e5fac775
Commit Summary:
RDMA/rxe: Fix memory allocation while in a spin lock
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/infiniband/sw/rxe/rxe_mcast.c b/drivers/infiniband/sw/rxe/rxe_mcast.c
index 0ea9a5aa4ec0..1c1d1b53312d 100644
--- a/drivers/infiniband/sw/rxe/rxe_mcast.c
+++ b/drivers/infiniband/sw/rxe/rxe_mcast.c
@@ -85,7 +85,7 @@ int rxe_mcast_add_grp_elem(struct rxe_dev *rxe, struct rxe_qp *qp,
 		goto out;
 	}
 
-	elem = rxe_alloc(&rxe->mc_elem_pool);
+	elem = rxe_alloc_locked(&rxe->mc_elem_pool);
 	if (!elem) {
 		err = -ENOMEM;
 		goto out;