projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA/uverbs: Fix post send success return value in case of error
[linux-2.6-microblaze.git]
/
drivers
/
infiniband
/
core
/
uverbs_cmd.c
diff --git
a/drivers/infiniband/core/uverbs_cmd.c
b/drivers/infiniband/core/uverbs_cmd.c
index
6b12cc5
..
1b82cb7
100644
(file)
--- a/
drivers/infiniband/core/uverbs_cmd.c
+++ b/
drivers/infiniband/core/uverbs_cmd.c
@@
-2012,8
+2012,10
@@
static int ib_uverbs_post_send(struct uverbs_attr_bundle *attrs)
return -ENOMEM;
qp = uobj_get_obj_read(qp, UVERBS_OBJECT_QP, cmd.qp_handle, attrs);
- if (!qp)
+ if (!qp) {
+ ret = -EINVAL;
goto out;
+ }
is_ud = qp->qp_type == IB_QPT_UD;
sg_ind = 0;