diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-09 22:30:44 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-12-09 22:30:44 (GMT) |
commit | df42245a3c246ec1eeeedbc3e5edbcc17f081c79 (patch) | |
tree | aef7d9b9989eeb214ad62fc425b38071b1f6dacc /drivers/infiniband/core/uverbs_cmd.c | |
parent | f7111821e51a58ee0f548f256743121ce1b365ae (diff) | |
download | linux-fsl-qoriq-df42245a3c246ec1eeeedbc3e5edbcc17f081c79.tar.xz |
IB/uverbs: Fix return of PTR_ERR() of wrong pointer in ib_uverbs_get_context()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 56feab6..112d397 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -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; } |