On Thu, Jan 09, 2020 at 08:10:52PM +0800, Weihang Li wrote: > From: Lijun Ou <oulijun@xxxxxxxxxx> > > Driver should first check whether the sge is valid, then fill the valid > sge and the caculated total into hardware, otherwise invalid sges will > cause an error. > > Fixes: 52e3b42a2f58 ("RDMA/hns: Filter for zero length of sge in hip08 kernel mode") > Fixes: 7bdee4158b37 ("RDMA/hns: Fill sq wqe context of ud type in hip08") > Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 41 ++++++++++++++++++------------ > 1 file changed, 25 insertions(+), 16 deletions(-) Applied to for-next, thanks Jason