Commit 39de69c4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher

drm/amdgpu/kfd: Add unlock() on error path to add_queue_mes()

We recently added locking to add_queue_mes() but this error path was
overlooked.  Add an unlock to the error path.

Fixes: 1802b042 ("drm/amdgpu/kfd: remove is_hws_hang and is_resetting")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 35665ca2
...@@ -230,6 +230,7 @@ static int add_queue_mes(struct device_queue_manager *dqm, struct queue *q, ...@@ -230,6 +230,7 @@ static int add_queue_mes(struct device_queue_manager *dqm, struct queue *q,
if (queue_type < 0) { if (queue_type < 0) {
dev_err(adev->dev, "Queue type not supported with MES, queue:%d\n", dev_err(adev->dev, "Queue type not supported with MES, queue:%d\n",
q->properties.type); q->properties.type);
up_read(&adev->reset_domain->sem);
return -EINVAL; return -EINVAL;
} }
queue_input.queue_type = (uint32_t)queue_type; queue_input.queue_type = (uint32_t)queue_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment