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
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
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
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.