Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8245850rwb; Wed, 23 Nov 2022 18:20:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sQ5Cnj4Me+zD87wPNW3HCjKYu3w6BG3BLy/ZUZpgIXDU3VC4EUn7tho+wM8nfLvWpTRqn X-Received: by 2002:a17:906:99cb:b0:7bb:7dda:7d3c with SMTP id s11-20020a17090699cb00b007bb7dda7d3cmr95567ejn.182.1669256406558; Wed, 23 Nov 2022 18:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669256406; cv=none; d=google.com; s=arc-20160816; b=vLCQyYy/DG1qnCcg6XNaI7sVhPsxb1DP5MuWVP38JOIblq30l3L3+TN6Rd/S5b/6D6 dfxoCNqVcfIFdhaWq7QBeL6gY4gDnS2kIBJgaauyknfnKUfyrfqVDVmPb951jQuw8ce1 cM639Vnm2FTnwHVlKA6ESCM+W4m2s+zEo9NuVBpcj9Ft40qw7XMNTk4hfbr6kjB3Yl7/ szuvWL28k1/VOuktiCxmWCj8EmUx3GRjs9SNC80deo7drgz+XSUFLbglpRnhpIYMjEgw Xu1KsBRLvW/78jDyZLqEzaoH8e46ZF2uR1Tg7I1T/rIZiyMyFxN196HVF4jmfKwDtBo7 1exg== 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=zl7CphDBSCRI9TCnQUFqx3KcVEanyzoqxk6i4Z1luz4=; b=gnuFkDxhrHBzCt80U9rtg59F1KN1t7EuFI8hAZz7GWuu09rGy2V6MbA7jDFXxO6Lfe /C3uNPqDuVlUgL8ltJ9y1z4DBk3vwNCjjSR5uV1OrgQIy8lc6LTfNavLRqk09ZYeKg0d izFQdZaTEqC4ZlOh5V4PEoh/PWtYKkHN22EzGB+LINqLJN5lsSTJiP2YYhJexbJWblJq 1ddw0J56xRzd30fg7ptbh0Gy7GsOQrnI++JeWiAgfCBjtH6C4E8AH8fU3gnGm+9RLW5O Ub+HVrozZFWqFzUgc3AZ4IRGzAx/hz30YEK+V1BMVYudXEgR0iSIBOgO31XGxqGRaubT HASQ== 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 hs36-20020a1709073ea400b007aec979f83bsi16782854ejc.745.2022.11.23.18.19.45; Wed, 23 Nov 2022 18:20:06 -0800 (PST) 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 S229639AbiKXB43 (ORCPT + 88 others); Wed, 23 Nov 2022 20:56:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiKXB42 (ORCPT ); Wed, 23 Nov 2022 20:56:28 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76BCE63172; Wed, 23 Nov 2022 17:56:27 -0800 (PST) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NHgxc6YMkzJnpy; Thu, 24 Nov 2022 09:53:08 +0800 (CST) Received: from localhost.localdomain (10.175.104.82) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 24 Nov 2022 09:56:25 +0800 From: Ziyang Xuan To: , , , , , , , , CC: , , Subject: [PATCH net 0/2] octeontx2: Fix several bugs in exception paths Date: Thu, 24 Nov 2022 09:56:22 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.82] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500006.china.huawei.com (7.192.105.130) 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 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 Find several obvious bugs during code review in exception paths. Provide this patchset to fix them. Not tested, just compiled. Ziyang Xuan (2): octeontx2-pf: Fix possible memory leak in otx2_probe() octeontx2-vf: Fix possible memory leak in otx2vf_probe() drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 ++++- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) -- 2.25.1