Re: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-12-14 Thread Doug Ledford
On 10/18/2016 2:39 PM, Colin King wrote: > From: Colin Ian King > > Currently, if pd is null then we hit a null pointer derference > on accessing pd->pd_id. Instead of just printing an error message > we should also return -EINVAL immediately. > > Signed-off-by: Colin

Re: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-12-14 Thread Doug Ledford
On 10/18/2016 2:39 PM, Colin King wrote: > From: Colin Ian King > > Currently, if pd is null then we hit a null pointer derference > on accessing pd->pd_id. Instead of just printing an error message > we should also return -EINVAL immediately. > > Signed-off-by: Colin Ian King Applied,

RE: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-10-20 Thread Amrani, Ram
> drivers/infiniband/hw/qedr/verbs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/infiniband/hw/qedr/verbs.c > b/drivers/infiniband/hw/qedr/verbs.c > index a615142..b2a0eb8 100644 > --- a/drivers/infiniband/hw/qedr/verbs.c > +++

RE: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-10-20 Thread Amrani, Ram
> drivers/infiniband/hw/qedr/verbs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/infiniband/hw/qedr/verbs.c > b/drivers/infiniband/hw/qedr/verbs.c > index a615142..b2a0eb8 100644 > --- a/drivers/infiniband/hw/qedr/verbs.c > +++

[PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-10-18 Thread Colin King
From: Colin Ian King Currently, if pd is null then we hit a null pointer derference on accessing pd->pd_id. Instead of just printing an error message we should also return -EINVAL immediately. Signed-off-by: Colin Ian King ---

[PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

2016-10-18 Thread Colin King
From: Colin Ian King Currently, if pd is null then we hit a null pointer derference on accessing pd->pd_id. Instead of just printing an error message we should also return -EINVAL immediately. Signed-off-by: Colin Ian King --- drivers/infiniband/hw/qedr/verbs.c | 4 +++- 1 file changed, 3