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

2019-03-14 Thread Saleem, Shiraz
>Subject: [PATCH] infiniband: i40iw: fix potential NULL pointer dereferences > >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

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

2019-03-12 Thread Saleem, Shiraz
>Subject: [PATCH] infiniband: i40iw: fix potential NULL pointer dereferences > >alloc_ordered_workqueue may fail and return NULL. Let's check its return value >to ensure it is not NULL so as to avoid potential NULL pointer dereferences. > >Signed-off-by: Kangjie Lu >--- >

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

2019-03-12 Thread Jason Gunthorpe
On Fri, Mar 08, 2019 at 11:27:50PM -0600, Kangjie Lu wrote: > alloc_ordered_workqueue may fail and return NULL. Let's check > its return value to ensure it is not NULL so as to avoid > potential NULL pointer dereferences. > > Signed-off-by: Kangjie Lu > drivers/infiniband/hw/i40iw/i40iw_cm.c |