Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3574171pxk; Mon, 7 Sep 2020 18:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXYk/eiWkD5SAkxrqRYwB7wQSxGfCVQlE3JOFIaeR54WVCkZYCwl05OCPBlWc5sqM6xJa/ X-Received: by 2002:a17:906:6158:: with SMTP id p24mr4317193ejl.35.1599527394812; Mon, 07 Sep 2020 18:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599527394; cv=none; d=google.com; s=arc-20160816; b=rDW3bvtreenBKNDdAAKARqdF5QheSJj52J8lxT0T22l2FSJL+AkOu1lBXPoRzl8jGT 1JlGr2XV+a0Ug13UyP20/YmGPastYz8ZTAsMkSzaFojMC8aaJE8Ry9TXOV+mjyg6f2PA D9zNXPgazQozxlqcKtnupwGbhcDriYe2n65l+CJAUNo0dk9BnfvgNoXywj6er35He34g 7jQ7WbkvC8rvDCYcOmIgfDYaioW2AkL7/h6MPsEmr6xMxCEI5IQP5S0eO0Ckfe2tqOOH p3/NrQZzzueXpv+rxP75SsasaY3PF5ykKMGIvQpBVqXgdnnftRqM3aNdP2/Jph9uQCSY nsUg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=ZdPDIStziEv0p8qmmMwlDYGqCJwHmA90b2DChqGNAz8=; b=VlcrY+XnIk/bUt/KDJoZivtZ35CXgAuwzvCpeKEZufSvBb7tA4zcWDUci2FmGbsXfm 7THMinyvhymKfnKebbDCw1ZxesNKaqV+jPkJCycFOJEcEYDGdnEHz5tauqvfb5n6K4vf 7t15C4n3yQuckncqRthvJZ/z91mJNLDt5gxHPrCH2KzzbgtZPd5iQ5rL+ZyAAhVF5tER I+V6uzai9qE77F7/GWNE55FfHxhz7pxDAWjzUSkcngH7ZiwGkgoSvglPMK8XfOlflNSE 6Pkn+3NtO9KPBXTmzYb8jeiOQMKAa0M7DSYW9tMBFKnArOKNBpzDpAtpwMjlac9IXETl vdDQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si10894398edy.478.2020.09.07.18.09.07; Mon, 07 Sep 2020 18:09:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbgIHBF1 (ORCPT + 99 others); Mon, 7 Sep 2020 21:05:27 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10833 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726918AbgIHBF0 (ORCPT ); Mon, 7 Sep 2020 21:05:26 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8B5548295C3B4781B870; Tue, 8 Sep 2020 09:05:24 +0800 (CST) Received: from [127.0.0.1] (10.174.179.103) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Sep 2020 09:05:15 +0800 Subject: Re: [PATCH] drm/mediatek: add missing put_device() call in mtk_ddp_comp_init() To: Chun-Kuang Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , , CK Hu , Bibby Hsieh , Yongqiang Niu , "DRI Development" , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel , References: <20200905083058.1631726-1-yukuai3@huawei.com> From: "yukuai (C)" Message-ID: Date: Tue, 8 Sep 2020 09:05:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.103] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/09/08 6:56, Chun-Kuang Hu wrote: > Hi Yu Kuai: > > Yu Kuai 於 2020年9月5日 週六 下午4:31寫道: >> >> if of_find_device_by_node() succeed, mtk_ddp_comp_init() doesn't have >> a corresponding put_device(). Thus add put_device() to fix the exception >> handling for this function implementation. >> > > This patch looks good to me, but I find another thing related to this. > mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), when this > component init fail, I think we should uninitialize previous > successive init component and put their device. Would you like to make > this patch more complete? Hi, Of course, thank you for your review. Best regards, Yu Kuai