Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3029864rwb; Mon, 15 Aug 2022 16:28:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CRQiHJA5N06klb6DSAENID2rnPpAC8YzM7usqmOpEkYzmjxOK0SPzDJIt1PUWrT8vXVzT X-Received: by 2002:a17:907:7ea8:b0:731:4fa1:d034 with SMTP id qb40-20020a1709077ea800b007314fa1d034mr11829221ejc.758.1660606128995; Mon, 15 Aug 2022 16:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606128; cv=none; d=google.com; s=arc-20160816; b=cCzOrbhKIB5wnRetQPYqzC87tqTIeA7stIPwA98B435oVRIKpTvPt3Bjw2ys/ntdaY Li1J0sq7eIBK5q6vJhpSorpwenjd5fJEsH2dF+Th6D1E8NkTU1lh8jx+m+h7IDEnRroo HBkv476WdRc9rVlgyClE75gSATSze82sQ93C2INTRYPPMAeOw6+5baH9RpwCAEJS24Rv 35Dp5nFwRM01BmdO6iLvHWLUqtBBGRNmZzpZtft08K6iTGWIUJyusQ+87mLeUbKTor6x OokCRpZ1Zb2aLzVpNEHBBkd0rIP3Sl6+is+FlHa95Zde2yYYcO1I+tQkTSPkOXZhyw9m 8pDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8dQS3J8Zrr3FX6K/Fsb1gXu9uNpxFN00EiPGyU8xvsg=; b=QwPA7lxHsgAiM9V3ayfosZ8TJbb63F6vOwgfhsmIC4IawDNGIZ4fIeOX5zdRzGSpjk TEhQcBLWXGxRaTNoRF59ec+3woWIANxPnFpH5liYKJNJr7FaKBzLSujtotpwRjEMCVdL QMTPxsJp4IXZbN6mm4tCOdpegyRyvilH7nkyjvskotTs+WCiAmqmdftjrtEbAPdtWtF+ eHsHwVIPgl5Sjys5tzjYR07W/xyG/3mmexiXh/P1jFMlCnAW+aKGh7lniQNYiVrNlGiL ME5uAUcwWt2KtvAepcyK4D7FRcLBuXf3RcYeyWxoliyA4vxJ+aJuBAKwtrCN27jOW+sO WQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gEcbe+qM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a056402354c00b0043bb8df080fsi8410460edd.606.2022.08.15.16.28.23; Mon, 15 Aug 2022 16:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gEcbe+qM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244059AbiHOXRS (ORCPT + 99 others); Mon, 15 Aug 2022 19:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345787AbiHOXOZ (ORCPT ); Mon, 15 Aug 2022 19:14:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42FDC13B8AA; Mon, 15 Aug 2022 13:01:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CF0AD6068D; Mon, 15 Aug 2022 20:01:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9573C433D6; Mon, 15 Aug 2022 20:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593684; bh=Aw/fON7IO1BsUp28ps98awEXsb/ffwFXAmfYFpR0noA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gEcbe+qMiF9zHNc8ijP5fV8INEH63Sh7FFmMjH2fNQy1LqIhomGhD7eZJzrJ8Lc0P RLPaK8sW8PBZ60AshL+t/J+45gjCoDrwAO2xPFxIXeVPO5InrrMfuCF+xdzECTJA7Y dWOOqijgEyeLxCsXr3QxmPnr92GbVt4dTg+9+sC8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Sascha Hauer , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.19 0307/1157] drm/rockchip: vop2: unlock on error path in vop2_crtc_atomic_enable() Date: Mon, 15 Aug 2022 19:54:23 +0200 Message-Id: <20220815180451.944615389@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 98526c5bbe3267d447ddd076b685439e3e1396c6 ] This error path needs an unlock before returning. Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver") Signed-off-by: Dan Carpenter Acked-by: Sascha Hauer Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/YnjZQRV9lpub2ET8@kili Signed-off-by: Sasha Levin --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c index 26ac91db0f35..d6e831576cd2 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c @@ -1524,6 +1524,7 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc, if (ret < 0) { drm_err(vop2->drm, "failed to enable dclk for video port%d - %d\n", vp->id, ret); + vop2_unlock(vop2); return; } -- 2.35.1