Re: [PATCH v2] infiniband: i40iw: fix potential NULL pointer dereferences

2019-03-27 Thread Jason Gunthorpe
On Fri, Mar 15, 2019 at 01:57:14AM -0500, Kangjie Lu wrote: > alloc_ordered_workqueue may fail and return NULL. > The fix captures the failure and handles it properly to avoid > potential NULL pointer dereferences. > > Signed-off-by: Kangjie Lu > --- > V2: add return value to capture the error co

RE: [PATCH v2] infiniband: i40iw: fix potential NULL pointer dereferences

2019-03-18 Thread Saleem, Shiraz
>Subject: [PATCH v2] infiniband: i40iw: fix potential NULL pointer dereferences Something like "RDMA/i40iw: Handle workqueue allocation failure" is a more appropriate subject line. > >alloc_ordered_workqueue may fail and return NULL. >The fix captures the failure and

[PATCH v2] infiniband: i40iw: fix potential NULL pointer dereferences

2019-03-14 Thread Kangjie Lu
alloc_ordered_workqueue may fail and return NULL. The fix captures the failure and handles it properly to avoid potential NULL pointer dereferences. Signed-off-by: Kangjie Lu --- V2: add return value to capture the error code --- drivers/infiniband/hw/i40iw/i40iw.h | 2 +- drivers/infiniba