Re: [PATCH] drm/amdkfd: NULL dereference involving create_process()

2017-06-14 Thread Oded Gabbay
On Wed, Jun 14, 2017 at 1:58 PM, Dan Carpenter wrote: > > We accidentally return ERR_PTR(0) which is NULL. The caller is not > expecting that and it leads to an Oops. > > Fixes: dd59239a9862 ("amdkfd: init aperture once per process") > Signed-off-by: Dan Carpenter > > diff --git a/drivers/gpu/dr

Re: [PATCH] drm/amdkfd: NULL dereference involving create_process()

2017-06-14 Thread Felix Kuehling
rg; amd-gfx@lists.freedesktop.org; kernel- > > janit...@vger.kernel.org > > Subject: [PATCH] drm/amdkfd: NULL dereference involving create_process() > > > > We accidentally return ERR_PTR(0) which is NULL. The caller is not > > expecting that and it leads to an Oop

RE: [PATCH] drm/amdkfd: NULL dereference involving create_process()

2017-06-14 Thread Deucher, Alexander
esktop.org; kernel- > janit...@vger.kernel.org > Subject: [PATCH] drm/amdkfd: NULL dereference involving create_process() > > We accidentally return ERR_PTR(0) which is NULL. The caller is not > expecting that and it leads to an Oops. > > Fixes: dd59239a9862 ("amdkfd: init

[PATCH] drm/amdkfd: NULL dereference involving create_process()

2017-06-14 Thread Dan Carpenter
We accidentally return ERR_PTR(0) which is NULL. The caller is not expecting that and it leads to an Oops. Fixes: dd59239a9862 ("amdkfd: init aperture once per process") Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.