[PATCH for-next 11/20] IB/hns: Fix bug of memory leakage for registering user mr

2016-09-09 Thread Salil Mehta
From: Lijun Ou While the page size attribute of umem is illegal, we should release umem that get by ib_umem_get interface. Also, we should return a non-zero value while pbl number is wrong. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald)

[PATCH for-next 11/20] IB/hns: Fix bug of memory leakage for registering user mr

2016-09-09 Thread Salil Mehta
From: Lijun Ou While the page size attribute of umem is illegal, we should release umem that get by ib_umem_get interface. Also, we should return a non-zero value while pbl number is wrong. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu (Xavier)