Skip to contentSkip to conversation

Mutex stays locked on error

PATCH John van der Kamp 2 participants 2 messages Jun 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Try to mail the patch again, this time inline. Hope this is how you can process it.

John

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +4 -2
index dcf84a61de37..949d10ef8304 100644
@@ -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;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#1 lore raw
Quoted 3 lines · John van der Kamp

Try to mail the patch again, this time inline. Hope this is how you can process it.

Can you use git to create the patch (git commit -a -s) and use git to generate the patch (git format-patch -1) and then send that out? Make sure to add your Signed-off-by. If not, I can just apply it on your behalf if you are ok with that.

Alex

Quoted 20 lines

John

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +4 -2
index dcf84a61de37..949d10ef8304 100644
@@ -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;
Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx