aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorDotan Barak <dotanb@mellanox.co.il>2006-03-02 14:25:27 -0500
committerRoland Dreier <rolandd@cisco.com>2006-03-20 13:08:21 -0500
commit27d56300647f6e76847bc2407d7abc782fe87495 (patch)
tree58e63c3f4271e65807e8508944306a7c227aa987 /drivers/infiniband
parent4546d31d84beafe74c56651173ac4fe197c7de8b (diff)
IB/uverbs: Fix query QP return of sq_sig_all
The old code didn't convert from the kernel's enum correctly. Signed-off-by: Dotan Barak <dotanb@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/uverbs_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c
index b157e5ff7dad..0e0dbc9421bf 100644
--- a/drivers/infiniband/core/uverbs_cmd.c
+++ b/drivers/infiniband/core/uverbs_cmd.c
@@ -1084,7 +1084,7 @@ ssize_t ib_uverbs_query_qp(struct ib_uverbs_file *file,
1084 resp.max_send_sge = init_attr->cap.max_send_sge; 1084 resp.max_send_sge = init_attr->cap.max_send_sge;
1085 resp.max_recv_sge = init_attr->cap.max_recv_sge; 1085 resp.max_recv_sge = init_attr->cap.max_recv_sge;
1086 resp.max_inline_data = init_attr->cap.max_inline_data; 1086 resp.max_inline_data = init_attr->cap.max_inline_data;
1087 resp.sq_sig_all = !!init_attr->sq_sig_type; 1087 resp.sq_sig_all = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR;
1088 1088
1089 if (copy_to_user((void __user *) (unsigned long) cmd.response, 1089 if (copy_to_user((void __user *) (unsigned long) cmd.response,
1090 &resp, sizeof resp)) 1090 &resp, sizeof resp))