RDMA/cma: Fix endianness bugs
authorSean Hefty <sean.hefty@intel.com>
Tue, 6 Dec 2011 21:15:18 +0000 (21:15 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 4 Jan 2012 17:13:52 +0000 (09:13 -0800)
commit46ea5061c750fc6b088b9566234287115fb70f98
treedb5ad08595bac4e37b508f697b950246bb87aba3
parent5f0a6e2d503896062f641639dacfe5055c2f593b
RDMA/cma: Fix endianness bugs

Fix endianness bugs reported by sparse in the RDMA core stack.  Note
that these are real bugs, but don't affect any existing code to the
best of my knowledge.  The mlid issue would only affect kernel users
of rdma_join_multicast which have the rdma_cm attach/detach its QP.
There are no current in tree users that do this. (rdma_join_multicast
may be used called by user space applications, which does not have
this issue.)  And the pkey setting is simply returned as
informational.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c