提交 8ef51b42 编写于 作者: J John van der Kamp 提交者: Alex Deucher

drm/amdgpu/display: Unlock mutex on error

Make sure we pass through ret label to unlock the mutex.
Signed-off-by: NJohn van der Kamp <sjonny@suffe.me.uk>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 dc2f832e
......@@ -546,8 +546,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);
if (!srm)
return -EINVAL;
if (!srm) {
ret = -EINVAL;
goto ret;
}
if (pos >= srm_size)
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册