Loading
RDMA/hns: Fix invalid sq params not being blocked
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBSE4C ---------------------------------------------------------------------- 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, to keep coding style unified, move default_congest_type() before set_kernel_sq_size(). Fixes: 7a5b9459 ("RDMA/hns: Fix congestions control algorithm type for UD") Fixes: 09f1b7cb ("RDMA/hns: Support congestion control algorithm configuration at QP granularity") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>