[PATCH 6.1 225/440] RDMA/hns: Fix undifined behavior caused by invalid max_sge