drm/amdkfd: NULL dereference involving create_process()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 10:58:53 +0000 (13:58 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 14 Jun 2017 10:58:53 +0000 (13:58 +0300)
commitb312b2b25b6ac9e2eb03f4ca651b33108752de3a
tree6549aa9e2ff136e9b6dfe4c5d5675c725cc673c6
parent047b8e21e3bfa9faa4ed9a0c337fe0c687710251
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 aperture once per process")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c