From patchwork Thu Nov 24 01:56:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ziyang Xuan X-Patchwork-Id: 2154 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3140290wrr; Wed, 23 Nov 2022 18:02:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf58HeNirLAGvrlq8X0FVmRUQetyomrRQMylJDg8u8sguo/790rfbwg4gF2AXHS2uEzymfm9 X-Received: by 2002:a17:906:850d:b0:7ae:21bc:89f0 with SMTP id i13-20020a170906850d00b007ae21bc89f0mr25707196ejx.132.1669255329747; Wed, 23 Nov 2022 18:02:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669255329; cv=none; d=google.com; s=arc-20160816; b=U4le2ZtDIRsWOTi1yHxVHRTEHFkgtnXfmtWnftSm3kpT2VGG+PeVm9YzQdCZIjzwXJ BuRBos+n3XnXxCqH9xPGdwPj63WW1ZZRwMHY4OsnvF7sytAP35Sm+iDIlM4zeSj60dCR h0LVVlLPrQH+p0e3kuUmKzHwMsYk9aB55nzGTQYIQDPuXEWKZasWb6WSK7S0nlGa5sVw o1PqZcxt5l3f9QTa0QfmOdWfcDztaGmr8lG7+8BkZDAz26KYhv7XK1pULsWug1yxnN9S td/g2QZZoj5s+A4xvdTNeZhgYBbF9PveM/mLnFl37lprL6OpfhVFJ3e6+j6tOKmcClVE KcIA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a056402521600b0046a02740cf8si4067555edd.109.2022.11.23.18.01.46; Wed, 23 Nov 2022 18:02:09 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750341076480703217?= X-GMAIL-MSGID: =?utf-8?q?1750341076480703217?= 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(-)