Message ID | 20200921162036.209603125@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=lyed=C6=vger.kernel.org=stable-owner@kernel.org> 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=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 12684C43466 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:42:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCC2B239A1 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706536; bh=Kr/P0uRJ7+elaXq9uS0DpM4PsjGS8tLYatiuM8Tr35A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wdFTs3CHzuVWGvnxlvIRvLLRUkGbE62UI4IdJSN9XBxjzYFfE1h3GwZgxbXxRRlMG BxT9Mr8Qug6M+MHUGd/VaaaueYrAVW5NSUoxSPFtMQSt3sGqGTrndcYH92SUGPObxB 83ZcW4xmBEH7zVP8Qnx8GQfNYFKuRMuTuscrVGaw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729203AbgIUQmO (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 21 Sep 2020 12:42:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:45872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729475AbgIUQl5 (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 21 Sep 2020 12:41:57 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D117238E6; Mon, 21 Sep 2020 16:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706517; bh=Kr/P0uRJ7+elaXq9uS0DpM4PsjGS8tLYatiuM8Tr35A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qO7EZhMSstUkWAjxOC+wXFC1W8IHaJUBcviSUgKdqSeFQaTS3lgxKlsBf0yKIbR7E 3O1zbvE6XQrY/sCe0uVeksAuMOud6+9ErlqaV2Ej25nwkwW8me4bHayoU6R7dWEP4U VVx0ObUCeqtF22Jj3Hfm6hI3kNh7agEOZsljtwCU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Yu Kuai <yukuai3@huawei.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 35/49] drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail Date: Mon, 21 Sep 2020 18:28:19 +0200 Message-Id: <20200921162036.209603125@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162034.660953761@linuxfoundation.org> References: <20200921162034.660953761@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 947bc6d623020..d143217636071 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -600,8 +600,13 @@ err_pm: pm_runtime_disable(dev); err_node: of_node_put(private->mutex_node); - for (i = 0; i < DDP_COMPONENT_ID_MAX; i++) + for (i = 0; i < DDP_COMPONENT_ID_MAX; i++) { of_node_put(private->comp_node[i]); + if (private->ddp_comp[i]) { + put_device(private->ddp_comp[i]->larb_dev); + private->ddp_comp[i] = NULL; + } + } return ret; }