Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1089058ybt; Wed, 1 Jul 2020 18:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDKq6ZwWSYpG86iH4w6SK8e5WSvHhV25QBTI3uT6DoerteX6hCZD0X4Q28/kGlkdtacCOO X-Received: by 2002:a05:6402:1a42:: with SMTP id bf2mr25436206edb.292.1593653837745; Wed, 01 Jul 2020 18:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653837; cv=none; d=google.com; s=arc-20160816; b=fWOhV3Dt2/zzxPxyvqkHOOwprSGDllv04CcfRyhJvQuiwueb5E48ZZorgpqdFZuaA4 QpMIb3GB4WCbN4cawpunIXD8lTVibysKB/JlAELvbdPc+crpZZNaMADeAFbG7DZtiPS8 AkImG3llqJBdxlfxAH5Jf7UgMvv9u6mqrsDHvD48u4WcUhkRZ+UIjnT/W2M4akVFGZeF PCEXvHEY3Bb/KlUwGcvUdAT39Cvo6O06Ia2da4DJ/uPWwmWM/lAIjo5/RV0+LJMF6waX 0LftCUqfO0OOfC1zYjDpX44doT0OqUg0X9KM5RCIE9n5ijYW6/WdHxXQMd/gANgO9sTr M5FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=99ZzYObl9Z8FH7doohK+Qy1zsvSURwRmwUxmzSdRVw0=; b=lpDj87LCdVTUl3v6AQEdfNauj0ilkEl2+NYVve5IkXJ+kpl12rxQTxjGK/AZYwMWed GUmW/suwVc96EOzvJrJuMpVOS3kAKATnGa1HB9vrnv0uSfYIhNnq6eiFvnIVfRiLNe+U zkaLxlLvXxR3FRlYnA8FvX2qRi1PypDIOxtx9ZepS8kfyLgsBoc8xWxN6Ua9FcYsaIBy e8ETxIRXPogVIfNahKW44/XMooymJ0cR+fd2hy+tA3iOnVY/7pbBx0EUrwSZLqGOEiVK yDfxIUonDkhs5oLJVuFB8OLA0rbPU8PMqMV74lEBfa70CfV3jfM3qrdeysSSqYmOcpHX 3Skw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8qGi+cW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si5442276edp.319.2020.07.01.18.36.55; Wed, 01 Jul 2020 18:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8qGi+cW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728567AbgGBBgw (ORCPT + 99 others); Wed, 1 Jul 2020 21:36:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:53380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbgGBBXF (ORCPT ); Wed, 1 Jul 2020 21:23:05 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D70C2085B; Thu, 2 Jul 2020 01:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593652985; bh=WZm9NVwm/5hzx3Z8PKdERAEM9pbyT8kA/yFB5RQ6bAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x8qGi+cWwAXzgnN6FLYCB1u4BypWGDm8WUi2uwBLIp3Hp8T+V/fhHja7q6lNT/SSA 8qj4kSxrGkRn+hv6NAHDs/Igh8w7Z5wP5eQrHVEYj5g6uhzvDrNxo8C+ACSizRL94t jEYH2+lDD3YaMXTFy4rBLd/rA/Yt9TdL691MOQOU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Thierry Reding , Sasha Levin , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 08/53] gpu: host1x: Clean up debugfs in error handling path Date: Wed, 1 Jul 2020 21:21:17 -0400 Message-Id: <20200702012202.2700645-8-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702012202.2700645-1-sashal@kernel.org> References: <20200702012202.2700645-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 109be8b23fb2ec8e2d309325ee3b7a49eab63961 ] host1x_debug_init() must be reverted in an error handling path. This is already fixed in the remove function since commit 44156eee91ba ("gpu: host1x: Clean up debugfs on removal") Signed-off-by: Christophe JAILLET Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/host1x/dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index d24344e919227..3c0f151847bae 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -468,11 +468,12 @@ static int host1x_probe(struct platform_device *pdev) err = host1x_register(host); if (err < 0) - goto deinit_intr; + goto deinit_debugfs; return 0; -deinit_intr: +deinit_debugfs: + host1x_debug_deinit(host); host1x_intr_deinit(host); deinit_syncpt: host1x_syncpt_deinit(host); -- 2.25.1