Re: [PATCH][next] RDMA: fix allocation failure on pointer pd

2019-02-12 Thread Jason Gunthorpe
On Tue, Feb 12, 2019 at 11:22:33AM +, Colin King wrote: > From: Colin Ian King > > The null check on an allocation failure on pd is currently checking > if pd is non-null rather than null. Fix this by adding the missing ! > operator. > > Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by I

Re: [PATCH][next] RDMA: fix allocation failure on pointer pd

2019-02-12 Thread Leon Romanovsky
On Tue, Feb 12, 2019 at 11:22:33AM +, Colin King wrote: > From: Colin Ian King > > The null check on an allocation failure on pd is currently checking > if pd is non-null rather than null. Fix this by adding the missing ! > operator. > > Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by IB/

[PATCH][next] RDMA: fix allocation failure on pointer pd

2019-02-12 Thread Colin King
From: Colin Ian King The null check on an allocation failure on pd is currently checking if pd is non-null rather than null. Fix this by adding the missing ! operator. Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by IB/core") Signed-off-by: Colin Ian King --- drivers/infiniband/hw/hns/hns