Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1155748iog; Wed, 15 Jun 2022 23:27:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHf5x5obvPAW6UsGeMjHE/7k2i9m2fQf/kA+epD0l1g9PC7yP89yE0XBN7v6v5h0N+iV1a X-Received: by 2002:a05:6a00:1946:b0:4fe:309f:d612 with SMTP id s6-20020a056a00194600b004fe309fd612mr3361404pfk.10.1655360846724; Wed, 15 Jun 2022 23:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655360846; cv=none; d=google.com; s=arc-20160816; b=NKdqCJt7DoaKT0T/bgga0Jtkq94I6eXVGDF5txVCVArgt56aKTT4VUaKpRgASux/y8 4LakCtwjwz5NYiK35N+Mb4COCADkW/5PeteImPgcO1Fcapo0yMKoVxWzIFsO1SAvDACE Zl5GZLG+F4ogeRB4nhKFS3MpwE4oGBiWSbnwnQFcWT/9f4+QCKdWt+QSrJjBQveA9KL+ b/OgdAtXKnYHg7tZyEb0yoUErhvZSZ5dP45l1PGMcF4rz+MxoYNu/8jGlNNZOdbP9NSH EwBdb/egQPGa3z0k5NWSNZfwL0MU2sihujJnH1PDl3r76ov3trFYz1Y/c7k3oTAT4btC DKJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=mmj8bWfL+r76Cr3HXjtIRkn/vs3wDXNJ5L6RLLyehsA=; b=LKfrXENzsPm/LAk2x3SoDV4mfgxNclxajG1AmdmxK/pS0yk3LonT4C7oZKs0l0cYVe x8ZecppeJcughFMz6G4jfgRZU4iqVejiibZRmiUAOPNia9J+2LwnYwkEJ8vQpGpd7SPL 5cdRh78Oj1giICblYtW+dDuzCWo4q+oho2isLhN1WP+8uUYzSmbsS9F+0ff3KNag9D8B nh/FtyfQKcts5txx0XpdS9X0ksKEjSxmirIB8VhEAuurImO0zEW41SyFjG0WwL3ZllnC VdUPqN5LZEyUI+yOEoCq53Hks1q8lzQC5H7YUcoHyJcL3jDRQ4TjeaQtxP6DOLiR476K qXWQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020aa79717000000b0051bcca7d2f0si1416096pfg.306.2022.06.15.23.27.15; Wed, 15 Jun 2022 23:27:26 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359045AbiFPGKV (ORCPT + 99 others); Thu, 16 Jun 2022 02:10:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358969AbiFPGKU (ORCPT ); Thu, 16 Jun 2022 02:10:20 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED2F2A256; Wed, 15 Jun 2022 23:10:20 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LNsDM2ZWRz1KB5t; Thu, 16 Jun 2022 14:08:19 +0800 (CST) Received: from [10.174.178.212] (10.174.178.212) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 16 Jun 2022 14:10:17 +0800 Subject: Re: [PATCH -next] power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind To: Sebastian Reichel , Linus Walleij CC: , , References: <20220512093844.1109923-1-zhengbin13@huawei.com> <20220609222239.5fssqczkdqy4inoz@mercury.elektranox.org> From: "Zhengbin (OSKernel)" Message-ID: <27654cfe-4d6e-8b5f-aaee-9f9a3117b3a2@huawei.com> Date: Thu, 16 Jun 2022 14:10:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20220609222239.5fssqczkdqy4inoz@mercury.elektranox.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.178.212] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500015.china.huawei.com (7.221.188.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2022/6/10 6:22, Sebastian Reichel wrote: > Hi, > > On Thu, May 12, 2022 at 05:38:44PM +0800, Zheng Bin wrote: >> ab8500_charger_bind misses destroy_workqueue in error path, >> this patch fixes that. >> >> Signed-off-by: Zheng Bin >> --- > LGTM, but adding Linus to Cc and waiting a bit to give him time to > react. > > -- Sebastian ping > >> drivers/power/supply/ab8500_charger.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c >> index d04d087caa50..a5d055a628e7 100644 >> --- a/drivers/power/supply/ab8500_charger.c >> +++ b/drivers/power/supply/ab8500_charger.c >> @@ -3378,6 +3378,7 @@ static int ab8500_charger_bind(struct device *dev) >> ret = component_bind_all(dev, di); >> if (ret) { >> dev_err(dev, "can't bind component devices\n"); >> + destroy_workqueue(di->charger_wq); >> return ret; >> } >> >> -- >> 2.31.1 >>