Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-28 Thread Jason Gunthorpe
On Thu, Mar 28, 2019 at 07:50:23PM +0530, Potnuri Bharat Teja wrote: > On Thursday, March 03/28/19, 2019 at 18:10:37 +0530, Jason Gunthorpe wrote: > > On Wed, Mar 27, 2019 at 07:08:54PM +0530, Potnuri Bharat Teja wrote: > > > On Saturday, March 03/23/19, 2019 at 08:07:46 +0530, Kangjie Lu wrote: >

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-28 Thread Potnuri Bharat Teja
On Thursday, March 03/28/19, 2019 at 18:10:37 +0530, Jason Gunthorpe wrote: > On Wed, Mar 27, 2019 at 07:08:54PM +0530, Potnuri Bharat Teja wrote: > > On Saturday, March 03/23/19, 2019 at 08:07:46 +0530, Kangjie Lu wrote: > > > > > > > > > > On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: > > >

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-28 Thread Jason Gunthorpe
On Wed, Mar 27, 2019 at 07:08:54PM +0530, Potnuri Bharat Teja wrote: > On Saturday, March 03/23/19, 2019 at 08:07:46 +0530, Kangjie Lu wrote: > > > > > > > On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: > > > > > > get_skb may fail and return NULL. The fix returns "ENOMEM" > > > when it fails

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-27 Thread Potnuri Bharat Teja
On Saturday, March 03/23/19, 2019 at 08:07:46 +0530, Kangjie Lu wrote: > > > > On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: > > > > get_skb may fail and return NULL. The fix returns "ENOMEM" > > when it fails to avoid NULL dereference. > > > > Signed-off-by: Kangjie Lu > > --- > >

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/9/2019 10:49 AM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh OJha --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/9/2019 10:49 AM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-23 Thread Bart Van Assche
On 3/22/19 7:37 PM, Kangjie Lu wrote: On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-22 Thread Kangjie Lu
> On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: > > get_skb may fail and return NULL. The fix returns "ENOMEM" > when it fails to avoid NULL dereference. > > Signed-off-by: Kangjie Lu > --- > drivers/infiniband/hw/cxgb4/cm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

[PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-08 Thread Kangjie Lu
get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index