Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp709536iob; Thu, 12 May 2022 03:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0M8Dfq3sEzELNNDWJpWOEYong/SiXZOIBObPNFHiAJYEtAHcFMIqIDhuwdhkO+rucOi12 X-Received: by 2002:a05:6638:3883:b0:32b:cc58:91cf with SMTP id b3-20020a056638388300b0032bcc5891cfmr13225548jav.7.1652349762273; Thu, 12 May 2022 03:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652349762; cv=none; d=google.com; s=arc-20160816; b=kJgf1Esl9uNPtHTxFRtwGtd2p9S36QakPUILTS496v6rFuIOJk2uRu/mCOX68tyaKs uqPzygFfYgI2wcG9kOtLvb9/zySVx8QkiYmyDjNMh1PtgtspEGWEiG1Tn4wIuuB3N4jl CNUVaaeipYJDN6cd/ClFbK3cMNwnKe047GvUOUciRc5e7mAeZoGFn/MDU4XKuJb1LmSj GWgBFDCN1JVOejgBuWPd9aytO0jIWYJmbtcNz/5Iz+BzCIxjuWMT5BtFmsY4cr3v1jdU GRZtX7oqp/2Mos0q71G6nItwHL5X/MYa42gsPrygoGZqIw7+peo3WqShAOrIBTxKGh26 bohg== 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 :message-id:date:subject:cc:to:from; bh=5ucKyi7QPlYC6peG9m1djQ99Z3/8ppoQ8PLPha/DpzU=; b=XFsKzHj/ACkUbtzT2mMzN2HhoX5F8FeOW2wUjuBA6TVSwY1yS26AS0llV1Mz3uZ2fO ju+gzdNvBHOaLF0aKujvEoAMgkJCI6P8VRhcJ5jDK6Xi6cC6kE3jgqHETKt6qHXg29cH S8cSEaRUcQBPNaLDHpLuxM4zOOAIhPbOmlqC+5wsnfT6TTc7+uoGlZ9u8KJhCSkvS1r9 rUQweexO4BR8EbwOZVGwRrRDUxdFZcQsZQkb6TLBbmOiB04joQCpvWT6b1e0iJTgJ+kk TYi916TtG5pNBSj7jqFKz8Qc+8AUMMEM9fwqsrS5zQvffgouK6UT52U5HTLu4W2rQ2Wv xWPQ== 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 n20-20020a6bf614000000b0065aaa7cd3aesi4741754ioh.26.2022.05.12.03.02.30; Thu, 12 May 2022 03:02:42 -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 S1351990AbiELJZC (ORCPT + 99 others); Thu, 12 May 2022 05:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352001AbiELJY4 (ORCPT ); Thu, 12 May 2022 05:24:56 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2276532F5; Thu, 12 May 2022 02:24:47 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KzRDP0WCtzhYwy; Thu, 12 May 2022 17:24:05 +0800 (CST) Received: from huawei.com (10.175.127.227) 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, 12 May 2022 17:24:44 +0800 From: Zheng Bin To: , , , , , , , CC: , Subject: [PATCH -next] octeon_ep: add missing destroy_workqueue in octep_init_module Date: Thu, 12 May 2022 17:38:37 +0800 Message-ID: <20220512093837.1109761-1-zhengbin13@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] 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=-4.2 required=5.0 tests=BAYES_00,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 octep_init_module misses destroy_workqueue in error path, this patch fixes that. Signed-off-by: Zheng Bin --- drivers/net/ethernet/marvell/octeon_ep/octep_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c index e020c81f3455..ebf78f6ca82b 100644 --- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c +++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c @@ -1149,6 +1149,7 @@ static int __init octep_init_module(void) if (ret < 0) { pr_err("%s: Failed to register PCI driver; err=%d\n", OCTEP_DRV_NAME, ret); + destroy_workqueue(octep_wq); return ret; } -- 2.31.1