Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f046bfdf authored by Ben Goz's avatar Ben Goz Committed by Oded Gabbay
Browse files

drm/amdkfd: PQM handle queue creation fault



If the first queue created was failed on DQM then PQM should
unregister the process from DQM.

Signed-off-by: default avatarBen Goz <ben.goz@amd.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
parent 26bc420b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -241,7 +241,10 @@ int pqm_create_queue(struct process_queue_manager *pqm,
err_create_queue:
	kfree(pqn);
err_allocate_pqn:
	/* check if queues list is empty unregister process from device */
	clear_bit(*qid, pqm->queue_slot_bitmap);
	if (list_empty(&pqm->queues))
		dev->dqm->unregister_process(dev->dqm, &pdd->qpd);
	return retval;
}