IB/uverbs: Fix alignment of struct ib_uverbs_create_qp_resp
authorRoland Dreier <rolandd@cisco.com>
Thu, 16 Feb 2006 17:26:19 +0000 (09:26 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:16 +0000 (10:08 -0800)
commit4d9781c5ce1a517a07dbf03c37323c011037fe79
tree68ad197f6ced067ab8c29294d156ee6e2e04da4e
parent00df1b2c8b1f07e02a74e2d10b176f29395ce7d2
IB/uverbs: Fix alignment of struct ib_uverbs_create_qp_resp

The size of struct ib_uverbs_create_qp_resp is not even multiple of 8
bytes.  This causes problems for low-level drivers that add private
data after the structure: 32-bit userspace will look in the wrong
place for a response from a 64-bit kernel.  Fix this by adding a
reserved field.  Also, bump the ABI version because this changes the
size of a structure.

Pointed out by Hoang-Nam Nguyen <HNGUYEN@de.ibm.com>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_user_verbs.h