IB/umad: fix RMPP handling
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 28 Nov 2005 21:07:20 +0000 (13:07 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 28 Nov 2005 21:07:20 +0000 (13:07 -0800)
commitbf6d9e23a36c8a01bf6fbb945387d8ca3870ff71
tree9fd732ebc6b85090b64862c4ee3af7078ba1f822
parent187a25863fe014486ee834164776b2a587d6934d
IB/umad: fix RMPP handling

ib_umad_write in user_mad.c is looking at rmpp_hdr field in MAD before
checking that the MAD actually has the RMPP header.  So for a MAD
without RMPP header it looks like we are actually checking a bit
inside M_Key, or something.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/user_mad.c