amdkfd: fix an error handling bug in pqm_create_queue()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 Nov 2014 10:24:51 +0000 (13:24 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Tue, 25 Nov 2014 10:24:51 +0000 (13:24 +0300)
commite048a0b26033b35eb36c20e4d36fb466a2570c27
tree5e9ea640dacbf9fce33ef1290785ef5840795aff
parent66333cb3d7d4ff853b6945f01e68d8986d821235
amdkfd: fix an error handling bug in pqm_create_queue()

The call to kernel_queue_uninit(NULL) will trigger a BUG(), and also the
error code is incorrect.

Fixes: 45102048f77e ('amdkfd: Add process queue manager module')
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c