diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-06-02 15:55:46 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-06-03 21:45:01 +0300 |
commit | 6512f11d386c7cf83a48e71cfd7c7c1b0003c151 (patch) | |
tree | fe97b032132c73bcdcad6318c3d64ecd86b43478 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 193ba03141bb987c3af985f6479840030fec0534 (diff) | |
download | linux-6512f11d386c7cf83a48e71cfd7c7c1b0003c151.tar.xz |
RDMA/mlx5: Return an error if copy_to_user fails
In theoretical event, the ib_copy_to_udata() can fail, so return -EFAULT
error to the user, so he will destroy the QP.
Fixes: 50aec2c3135e ("RDMA/mlx5: Return ECE data after modify QP")
Link: https://lore.kernel.org/r/20200602125548.172654-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions