Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1970374ybg; Fri, 5 Jun 2020 02:11:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynZ3I9qzt4Oj4N/9fkNLxRAvaNq2lp876KjMuwryLJ7mh6VADIS6n3VO6QNYVRvvZwX8Bn X-Received: by 2002:a05:6402:1d29:: with SMTP id dh9mr8241897edb.269.1591348272730; Fri, 05 Jun 2020 02:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591348272; cv=none; d=google.com; s=arc-20160816; b=OmXAdRvOCCGNCMwnAnG2cXggUMEI4IaTonGbHkdviru46axEYz3kJUmFQeedCD3hCT ubtofO5SRrDjais0EbSoEfAUve8BDPm+P2+fk9nJo++m0LPXeMVpdpcAyKkdFMorEU3b +wcRMps7Y3fzfdvECd0QMKMy5IYZJbKUbXz1FXyJkgujJZYgqrWWxxykYrXzC+9q/plM 1av5hfz5NewjIhxd65S5YWFOlSxveSS2an5Dljw75s7iYGL5qBGH6NkfW7B/mp4/KiUL 6jtP37sDP987dGSMIEPdElDSw+JKhYBKLqrPd4+tcnyDl+8WcOlIOSJ+7UvoRdaaYZDU xicg== 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=dzebnphU5zXMDGSpR78BeMmQGc2ekkmTNvsTkfrnQb4=; b=CZ2O/eb3H8E4/dVoDfk6sf2ER2OC1eF9kOHTuKsY711JhiGzNt5cLyZE2orENuVqEt u3pBjxBQVM1UmkXOx2szpk7rLiqa8VkODd8V1GsfkIBcPUPHT9+c8jM+o2M+a9pzbn+q jjCm/xUOUAjTVtrgKsjFWy52Ieminz1OqijcDyGt1wdMyM3Sv0hCqmXDda7W8JRkzcYl pCwmJY+INUjgI2dlps/rJ5Wxxge7h4f7rcP1IkxJhd/oV3itaBGyh/PjDbF3sFEu7xKp 4i68bV3m3S9rVqZoJxAPpi5/06PGjuiDN0mf5sNLvKi8IWL1FsPzBakkFzxIamGj20Q2 8R1w== 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 v10si292edy.534.2020.06.05.02.10.40; Fri, 05 Jun 2020 02:11:12 -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 S1726188AbgFEJIv (ORCPT + 99 others); Fri, 5 Jun 2020 05:08:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5790 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726129AbgFEJIv (ORCPT ); Fri, 5 Jun 2020 05:08:51 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E38BE8A2349040B75B79; Fri, 5 Jun 2020 17:08:48 +0800 (CST) Received: from [127.0.0.1] (10.166.215.204) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 5 Jun 2020 17:08:38 +0800 Subject: Re: [PATCH] ARM: imx6: add missing put_device() call in imx6q_suspend_init() To: Markus Elfring , , , CC: Anson Huang , Fabio Estevam , Russell King , Sascha Hauer , Shawn Guo , Yi Zhang , , LKML References: From: "yukuai (C)" Message-ID: <2ab2cc9f-c720-75ca-e20c-0e4236ff45fd@huawei.com> Date: Fri, 5 Jun 2020 17:08:37 +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: 7bit X-Originating-IP: [10.166.215.204] 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/6/5 3:07, Markus Elfring wrote: >> if of_find_device_by_node() succeed, imx6q_suspend_init() doesn't have a >> corresponding put_device(). Thus add a jump target to fix the exception >> handling for this function implementation. > > Do you find a previous update suggestion useful? > > ARM: imx6: Add missing put_device() call in imx6q_suspend_init() > https://lore.kernel.org/linux-arm-kernel/5acd7308-f6e1-4b1e-c744-bb2e5fdca1be@web.de/ > https://lore.kernel.org/patchwork/patch/1151158/ > https://lkml.org/lkml/2019/11/9/125 Hi, Markus It is useful indeed. Although I didn't run cocci script, since it can produce too many false result which is hard to filter out. BTW, I see you haver done the work already, I guess I won't send any patches related to 'missing put_device after of_find_device_by_node()'. Any idea why these pathes didn't get applied ? Best regards, Yu Kuai