Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df42245a authored by Roel Kluin's avatar Roel Kluin Committed by Roland Dreier
Browse files

IB/uverbs: Fix return of PTR_ERR() of wrong pointer in ib_uverbs_get_context()

parent f7111821
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file,

	ucontext = ibdev->alloc_ucontext(ibdev, &udata);
	if (IS_ERR(ucontext)) {
		ret = PTR_ERR(file->ucontext);
		ret = PTR_ERR(ucontext);
		goto err;
	}