[PATCH 6.10 465/809] RDMA/hns: Fix undifined behavior caused by invalid max_sge