diff options
author | Moni Shoua | 2017-12-24 12:54:57 +0100 |
---|---|---|
committer | Jason Gunthorpe | 2017-12-27 23:24:41 +0100 |
commit | 05d14e7b0c138cb07ba30e464f47b39434f3fdef (patch) | |
tree | 7cd4b645a1b00b58a511d86738019bf109aaf960 /drivers/infiniband/hw/mlx5/mr.c | |
parent | IB/mlx5: Serialize access to the VMA list (diff) | |
download | kernel-qcow2-linux-05d14e7b0c138cb07ba30e464f47b39434f3fdef.tar.gz kernel-qcow2-linux-05d14e7b0c138cb07ba30e464f47b39434f3fdef.tar.xz kernel-qcow2-linux-05d14e7b0c138cb07ba30e464f47b39434f3fdef.zip |
IB/uverbs: Fix command checking as part of ib_uverbs_ex_modify_qp()
If the input command length is larger than the kernel supports an error should
be returned in case the unsupported bytes are not cleared, instead of the
other way aroudn. This matches what all other callers of ib_is_udata_cleared
do and will avoid user ABI problems in the future.
Cc: <stable@vger.kernel.org> # v4.10
Fixes: 189aba99e700 ("IB/uverbs: Extend modify_qp and support packet pacing")
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mr.c')
0 files changed, 0 insertions, 0 deletions