Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1742574iof; Tue, 7 Jun 2022 10:37:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0LWSg4wVU5fWz0ASLJu+j8PF2CM5w+XpUpqohyEFkN0uBmAsm/ooaF+G7GBYnWwOJTbOW X-Received: by 2002:a17:906:2cc8:b0:6fd:d8d8:b8f3 with SMTP id r8-20020a1709062cc800b006fdd8d8b8f3mr28117228ejr.384.1654623433157; Tue, 07 Jun 2022 10:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654623433; cv=none; d=google.com; s=arc-20160816; b=bw3Yhl6KAKmbyvwaCHonczoS5T/euwSCVvWUcqNhIvmeq9YTL+OPyxu7Jfk+3h3u9r giM0x+Ho0DS1UBwXGqol5LK9YJlaSzn+9AHJYGUP9EZ/upVPZwRDjYoIAM+mPMpDV2qj XLsiN0tfRLIUmINOawpkv7szbRTBaRHi/L4h7DM4M63LyPKqajnjIIY6dd9kRqQ5qOYK Zs7/0GtwX5YJDdaORgaY8Wj3fQWZmnhOHrNy4iD4CydtNs6F50xOU1nqaz1I41WxcrYf a3GjyK7IoYr60MoglXYZr8Tu+zRKSAu1OLb+JAI9EzcrXhgaKLhkVEOuKZ+PfR4TXsdH 9W9A== 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=yH9Kys3ZhySXSaDnBTijUNXWQmxU3PKAEmPehJOoUlI=; b=Nvn7donO1+J3uVxmDdasJbDx7bm1yo6T1gnVweIxVTXdWyHMQDxABH8dpXiH2gaJNE /cKSLciOxIFA4w3H6RnkMKQrM9+KbMZgl21AcptLeYaELFSVLyEfU+LjTI/rGHcl4cPv 9TAjfAQ73cWx6sKmHrN9odVp0cn0Tpq8POB9KNS2tUgJWc6rWpVt+Q2/AfF0AE65YqCS Fjx4lwjB0bRmEwoonSMiAWW+sKgepvuactjKT2jDzqcQLfi1mI+tMDndiliLL1mwmrkj dDbmpS7SNXMTJeqZ15YhZh3IOHoqZmx54g1uDQfr0RghL0jpVbVj9lbmENMUx+8HRoaG IuFQ== 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 bx26-20020a0564020b5a00b0042dde377e4fsi10401150edb.356.2022.06.07.10.36.46; Tue, 07 Jun 2022 10:37:13 -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 S244538AbiFGNQx (ORCPT + 99 others); Tue, 7 Jun 2022 09:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241029AbiFGNQv (ORCPT ); Tue, 7 Jun 2022 09:16:51 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BD9F33BE; Tue, 7 Jun 2022 06:16:51 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LHW7Q1L39zjXR9; Tue, 7 Jun 2022 21:15:30 +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; Tue, 7 Jun 2022 21:16:48 +0800 Subject: Re: [PATCH -next] power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind To: , , , , CC: References: <20220512093844.1109923-1-zhengbin13@huawei.com> From: "Zhengbin (OSKernel)" Message-ID: Date: Tue, 7 Jun 2022 21:16:48 +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: <20220512093844.1109923-1-zhengbin13@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.178.212] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 friendly ping On 2022/5/12 17:38, Zheng Bin wrote: > ab8500_charger_bind misses destroy_workqueue in error path, > this patch fixes that. > > Signed-off-by: Zheng Bin > --- > 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 > > . >