Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2192189iof; Tue, 7 Jun 2022 22:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPPnfbY33L4dOfuw3M4mAheCAKL/4lB/v4TX9lwr9fCtQIJsy03MfSCLffa+hUQizdtEs+ X-Received: by 2002:a62:f846:0:b0:51c:17b2:60de with SMTP id c6-20020a62f846000000b0051c17b260demr14781563pfm.76.1654667073636; Tue, 07 Jun 2022 22:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667073; cv=none; d=google.com; s=arc-20160816; b=W09ikbVtZNErP1KVXJWlP2O/ouzJXKsgQmYQLpH1zulHXPVumIsTljc3LpXMJpSPMP xh0MGvFK5RER/iS0IfUKZxZ8rvEB0DCjwHvxwQSQQHz5Yi5czB7cjJVYurjDRAqDzjKs MR51daJoweoBSdVzalRX5uCi+A0QWBcrdPL0RlG5VskX8/F7xA41eV+nh/pZh6EmmiMs cGg5Fj+uvYL7WJjKbUe3aaTnhRrGFReT3rpIrJeHNwy/j+796cuNkVI1AYIGSE4NRn88 BfCfbfjA1mzok/w1tKv2i3l9fPQsqKNp/Nbo4+lFurg/TiA4eV85SYbdxRIyOY+MybJq oOGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QVdo08adyW3pcwnQ2NNkfgq1BtK/94nAYY/73i7styg=; b=tbXvmmYzgDXcElVJLX3UaA5McwMqTy4iMl5DA47Xk4SUzmWb8QtkFDypPz04A7gF+s MDFuTxeAeRPIbGLslk9Z3cG5PwxyT2c6wZjb9sPw7m1IJp2pXyQO95VqvNbmAiAXa6yg kcBS686O+6wln0V/l0muphsVFQmht5tJEzY4rj8c7WN5Lt8V6lpkYEMbwO1ickaMgMZA 8Mf/bPBuzoz59IqejsjGNpvTU3q6G7CYtpz6VNlvZ6SXbhNbNl0yuVIDAY/L4olqyjYB dVeL7RA7x1fSPvLaP66SU+tXcXqoBKTKxpMd+ngh608FDhDv6qSH/YKLo6PbploZYFlH Jpyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iORRcq0z; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b15-20020a170903228f00b001640bfcdf58si28307237plh.182.2022.06.07.22.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:44:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iORRcq0z; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6250631C145; Tue, 7 Jun 2022 22:09:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387159AbiFGWuA (ORCPT + 99 others); Tue, 7 Jun 2022 18:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381700AbiFGVll (ORCPT ); Tue, 7 Jun 2022 17:41:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87052233542; Tue, 7 Jun 2022 12:07:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9EC2E6186B; Tue, 7 Jun 2022 19:07:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE187C385A5; Tue, 7 Jun 2022 19:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628822; bh=Q224vtITk0d/tz032JMgEBEMMV9rpIBeSBHpFkpXEq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iORRcq0z6Y3pVJGSB/LvFkYSM3Gw7A3ZZa2asvRoGwN2gJY3OOO7Vc5WiVTCricIa +trurr7DDGsVsv//2m6l3wJyMTUSIUPmbee/yBLLKceIfCG5pyWmxlFhdBtT31U41e c/EtBHtbEELygOWJB6LlDFBJoIYReJ0O3afX1dn0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zheng Bin , "David S. Miller" , Sasha Levin Subject: [PATCH 5.18 469/879] net: hinic: add missing destroy_workqueue in hinic_pf_to_mgmt_init Date: Tue, 7 Jun 2022 18:59:47 +0200 Message-Id: <20220607165016.491790899@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Zheng Bin [ Upstream commit 382d917bfc1e92339dae3c8a636b2730e8bb5132 ] hinic_pf_to_mgmt_init misses destroy_workqueue in error path, this patch fixes that. Fixes: 6dbb89014dc3 ("hinic: fix sending mailbox timeout in aeq event work") Signed-off-by: Zheng Bin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c index ebc77771f5da..4aa1f433ed24 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c @@ -643,6 +643,7 @@ int hinic_pf_to_mgmt_init(struct hinic_pf_to_mgmt *pf_to_mgmt, err = alloc_msg_buf(pf_to_mgmt); if (err) { dev_err(&pdev->dev, "Failed to allocate msg buffers\n"); + destroy_workqueue(pf_to_mgmt->workq); hinic_health_reporters_destroy(hwdev->devlink_dev); return err; } @@ -650,6 +651,7 @@ int hinic_pf_to_mgmt_init(struct hinic_pf_to_mgmt *pf_to_mgmt, err = hinic_api_cmd_init(pf_to_mgmt->cmd_chain, hwif); if (err) { dev_err(&pdev->dev, "Failed to initialize cmd chains\n"); + destroy_workqueue(pf_to_mgmt->workq); hinic_health_reporters_destroy(hwdev->devlink_dev); return err; } -- 2.35.1