]> Pileus Git - ~andy/linux/commit
IB/mthca: Check that sgid_index and path_mtu are valid in modify_qp
authorDotan Barak <dotanb@mellanox.co.il>
Sun, 19 Mar 2006 15:20:36 +0000 (17:20 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 24 Mar 2006 23:47:27 +0000 (15:47 -0800)
commit0ef61db837c93d4377fabd37182bb6f83ea5ca70
tree04e5d5db86c5b12e3879c8a7c8933a1b8300ceda
parentcf368713a3f3b2eb737a92d1b7186dedcc51167c
IB/mthca: Check that sgid_index and path_mtu are valid in modify_qp

Add a check that the modify QP parameters sgid_index and path_mtu are
valid, since they might come from userspace.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c