IB/uverbs: PTR_ERR return of wrong pointer in ib_uverbs_get_context()
PATCH 1/1 IB/uverbs: PTR_ERR return of wrong pointer in ib_uverbs_get_context()
Return the PTR_ERR of the correct pointer.
Signed-off-by Roel Kluin <[email protected]>
--- drivers/infiniband/core/uverbs_cmd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Unless this should be fixed otherwise?
drivers/infiniband/core/uverbs_cmd.c +1 -1
@@ -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; }
Well spotted, applied thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html