Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 593E3C433DF for ; Tue, 23 Jun 2020 21:02:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 205DA20702 for ; Tue, 23 Jun 2020 21:02:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 205DA20702 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suffe.me.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D79966E7F1; Tue, 23 Jun 2020 21:02:05 +0000 (UTC) Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1E8BB6E198 for ; Tue, 23 Jun 2020 20:39:01 +0000 (UTC) Received: from kirika.xs4all.nl ([IPv6:2001:985:5198:1:dced:2021:4507:6be6]) by smtp-cloud9.xs4all.net with ESMTP id nph5jiOnJvh6gnph6j382J; Tue, 23 Jun 2020 22:39:00 +0200 Received: from localhost (localhost [IPv6:::1]) by kirika.xs4all.nl (Postfix) with ESMTPS id E3E7A1A401B0 for ; Tue, 23 Jun 2020 22:38:58 +0200 (CEST) Date: Tue, 23 Jun 2020 22:38:58 +0200 (CEST) From: John van der Kamp X-X-Sender: sjonny@kirika.lan To: amd-gfx@lists.freedesktop.org Subject: Mutex stays locked on error Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-CMAE-Envelope: MS4wfCrp4fQReB9IVo5JSurzUwVNocwpq78FfeF7O0ap0lg85p8aZAtvqf1f51lLrpVmxQTATV9bO3oppAp5Wo9vyePjrFEvoMRxwHSGiGRbqyjrz8jvz0+w uBrplg/V6Br4W7DZtrfskdD0/aH/pIiqiSyD0z+dqIoFoCJzGK+0y8lXYeKoUADjYk+lJnv7LI6VGMx7HtDNgqnfcEP0M/CPOJk0cmM7Eb3LUSCqgYQs1uFa oGI5QlsJg4xfdKT36vmrSQ== X-Mailman-Approved-At: Tue, 23 Jun 2020 21:02:05 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Try to mail the patch again, this time inline. Hope this is how you can process it. John diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c index dcf84a61de37..949d10ef8304 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c @@ -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 amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx