RDMA/uverbs: Ensure validity of current QP state value
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 11 Mar 2018 11:51:33 +0000 (13:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 19:34:25 +0000 (15:34 -0400)
commit88de869bbe4fb669ae92f19225a90b07d8173ccb
tree480cb2c799fe385db1c2dacc92c53286643d1a57
parent75a4598209cbe45540baa316c3b51d9db222e96e
RDMA/uverbs: Ensure validity of current QP state value

The QP state is internal enum which is checked at the driver
level by calling to ib_modify_qp_is_ok(). Move this check closer
to user and leave kernel users to be checked by compiler.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c