diff options
| author | Junxian Huang <[email protected]> | 2025-03-11 08:48:54 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-03-12 18:35:50 +0000 |
| commit | 13c90c222049764bb7e6a1689bd785f424bd8bd5 (patch) | |
| tree | 40603f7dce35cdcbfe094ddf1c408c74c2c05d5a /rust/helpers/helpers.c | |
| parent | RDMA/hns: Fix unmatched condition in error path of alloc_user_qp_db() (diff) | |
| download | kernel-13c90c222049764bb7e6a1689bd785f424bd8bd5.tar.gz kernel-13c90c222049764bb7e6a1689bd785f424bd8bd5.zip | |
RDMA/hns: Fix invalid sq params not being blocked
SQ params from userspace are checked in by set_user_sq_size(). But
when the check fails, the function doesn't return but instead keep
running and overwrite 'ret'. As a result, the invalid params will
not get blocked actually.
Add a return right after the failed check. Besides, although the
check result of kernel sq params will not be overwritten, to keep
coding style unified, move default_congest_type() before
set_kernel_sq_size().
Fixes: 6ec429d5887a ("RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity")
Signed-off-by: Junxian Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
