Re: [PATCH] infiniband/qedr: Potential null ptr dereference of qp

2019-01-02 Thread Jason Gunthorpe
On Mon, Dec 24, 2018 at 12:24:45PM -0600, Aditya Pakki wrote: > idr_find() may fail and return a NULL pointer. The fix checks the > return value of the function and returns an error in case of NULL. > > Signed-off-by: Aditya Pakki > Acked-by: Michal Kalderon > --- > drivers/infiniband/hw/qedr/q

RE: [EXT] [PATCH] infiniband/qedr: Potential null ptr dereference of qp

2018-12-25 Thread Michal Kalderon
> From: Aditya Pakki > Sent: Monday, December 24, 2018 8:25 PM > > External Email > > -- > External Email > > idr_find() may fail and return a NULL pointer. The fix checks the return value > of the function and returns an error

Re: [PATCH] infiniband/qedr: Potential null ptr dereference of qp

2018-12-24 Thread Leon Romanovsky
On Mon, Dec 24, 2018 at 12:24:45PM -0600, Aditya Pakki wrote: > idr_find() may fail and return a NULL pointer. The fix checks the > return value of the function and returns an error in case of NULL. > > Signed-off-by: Aditya Pakki > --- > drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 ++ > 1 file c

[PATCH] infiniband/qedr: Potential null ptr dereference of qp

2018-12-24 Thread Aditya Pakki
idr_find() may fail and return a NULL pointer. The fix checks the return value of the function and returns an error in case of NULL. Signed-off-by: Aditya Pakki --- drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm