[PATCH 6.6 303/568] RDMA/hns: Fix undifined behavior caused by invalid max_sge