IB/addr: Verify source and destination address families match
authorSean Hefty <sean.hefty@intel.com>
Thu, 19 Nov 2009 20:55:22 +0000 (12:55 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Nov 2009 20:55:22 +0000 (12:55 -0800)
commitd2e0886245aa9eebc1a4710c861d263b09eac493
tree0343fc239b6bc63b992878b2721af320feb39101
parent6266ed6e4164466177238b11ecb825a3a108a3e4
IB/addr: Verify source and destination address families match

If a source address is provided, verify that the address family matches
that of the destination address.  If the source is not specified, use the
same address family as the destination.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/addr.c