diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-02-21 18:12:38 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-02-22 22:29:50 -0500 |
commit | eb455e329bf65c75372da65a6a268c519f489183 (patch) | |
tree | 97f468c718de2fd5adb92acc7712c61fb71a14b4 /fs/select.c | |
parent | RDMA/uverbs: Refactor command header processing (diff) | |
download | linux-dev-eb455e329bf65c75372da65a6a268c519f489183.tar.xz linux-dev-eb455e329bf65c75372da65a6a268c519f489183.zip |
RDMA/uverbs: Properly check command supported mask
The check based on index is not sufficient because
IB_USER_VERBS_EX_CMD_CREATE_CQ = IB_USER_VERBS_CMD_CREATE_CQ
and IB_USER_VERBS_CMD_CREATE_CQ <= IB_USER_VERBS_CMD_OPEN_QP,
so if we execute IB_USER_VERBS_EX_CMD_CREATE_CQ this code checks
ib_dev->uverbs_cmd_mask not ib_dev->uverbs_ex_cmd_mask.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions