Skip to content

Commit

Permalink
IB/uverbs: Fix return of PTR_ERR() of wrong pointer in ib_uverbs_get_…
Browse files Browse the repository at this point in the history
…context()

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Roel Kluin authored and Roland Dreier committed Dec 9, 2009
1 parent f711182 commit df42245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit df42245

Please sign in to comment.