Commit ee434a4f authored by John van der Kamp's avatar John van der Kamp Committed by Alex Deucher

drm/amdgpu/display: Unlock mutex on error

Make sure we pass through ret label to unlock the mutex.
Signed-off-by: default avatarJohn van der Kamp <sjonny@suffe.me.uk>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 48778464
...@@ -510,8 +510,10 @@ static ssize_t srm_data_read(struct file *filp, struct kobject *kobj, struct bin ...@@ -510,8 +510,10 @@ static ssize_t srm_data_read(struct file *filp, struct kobject *kobj, struct bin
srm = psp_get_srm(work->hdcp.config.psp.handle, &srm_version, &srm_size); srm = psp_get_srm(work->hdcp.config.psp.handle, &srm_version, &srm_size);
if (!srm) if (!srm) {
return -EINVAL; ret = -EINVAL;
goto ret;
}
if (pos >= srm_size) if (pos >= srm_size)
ret = 0; ret = 0;
......
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