mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:36:55 +07:00
drm/amdgpu/display: Unlock mutex on error
Make sure we pass through ret label to unlock the mutex. Signed-off-by: John van der Kamp <sjonny@suffe.me.uk> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
48778464bb
commit
ee434a4f9f
@ -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);
|
||||
|
||||
if (!srm)
|
||||
return -EINVAL;
|
||||
if (!srm) {
|
||||
ret = -EINVAL;
|
||||
goto ret;
|
||||
}
|
||||
|
||||
if (pos >= srm_size)
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user