[IB] uverbs: reject invalid memory registration permission flags
authorRoland Dreier <rolandd@cisco.com>
Mon, 3 Oct 2005 16:18:02 +0000 (09:18 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:20:27 +0000 (15:20 -0700)
commitf575394f1de9b4afa4b474f1882c7e2d3b8e51d7
treeb9ffc5983cbba3acbb8d7233d26101c38f4d7e61
parent9825051e8c81cbd4400333e7cdc04be77a0bab75
[IB] uverbs: reject invalid memory registration permission flags

Reject userspace memory registrations with invalid permission flags:
"local write" is required if "remote write" or "remote atomic" is also
requested.

Pointed out by Jack Morgenstein <jackm@mellanox.co.il>

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c