Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10079898rwb; Fri, 25 Nov 2022 00:21:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf654n62uxZSQitoaQUSJY7XOQa6xthJdqBjztH0FQr+sTDaJn4hP/bcuozsOYcs2HayPOfH X-Received: by 2002:a17:906:1445:b0:7a1:6786:444f with SMTP id q5-20020a170906144500b007a16786444fmr13999770ejc.409.1669364498893; Fri, 25 Nov 2022 00:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669364498; cv=none; d=google.com; s=arc-20160816; b=RmeLKp7zEFLPWgOUsnNH3ohc7ZrFosgkfo4wWdVMK7a4O3kWQw2CaS0Pila4wuoN8E 8IcgdggvYceutsvnjmzRr9YVjipeG5Rm6dttOs60kWUQ831wh4stA4UHaecR/WLKVepi KFEt1OVD196MbeHh7KcMxLhpgWjGgwsd5yKJc79kJb0Bgnl3B95IOMx/0gjsBmR5zhYo G+l1USENKcE6Oy5rXMmmTeTO+4iFNtsKUkQH5INlJEdfaRoNwlcQTxCGFJSXI4Nm38ev 0eZ/TYJmYojYhVRfHs2+lmHLPj1zB6irrLrFnx1gMXGF7LHOiv2F8NYKXYLKR9mizVR9 mCbA== 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=QrGmHt9k4afMjkqR0tMjeC1tFqE2sfWMNqPvrBKd6rs=; b=AfFJDx+TJe9BnMdLZGhwpCfVsxtkk+6hlGhLvZJQQWHV095RXW9xNgkMHOXYPQWmIA M7FO5kqxO6ELoT6+e0+zxvqOzsVmYSlXwqpp15up7sr40jXeZnBR4MrUH+W8E9C0DnW7 wm4y7Jwd5ixibTzV291Cdy04ttd1L3NB5D1Ry3XnkfOskC30iAF7vrhCBkyt56l5WpqQ 7kJKdFSpfJQ0ibu5jz53uoWNlePci9mSugMlFNc2Vl/5gS4WtWbaYKfschzVEwZXI+C2 XHX2k0oyt4mfPYWb9Fb3aVRPzc5f41uOpfN0HNwo+7/uwLpPC0gYwcBYmCojXotIPLpr JWZg== 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 g14-20020a056402090e00b00447d6f244c6si2422884edz.248.2022.11.25.00.21.17; Fri, 25 Nov 2022 00:21:38 -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 S229626AbiKYHp3 (ORCPT + 87 others); Fri, 25 Nov 2022 02:45:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiKYHp1 (ORCPT ); Fri, 25 Nov 2022 02:45:27 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7B832EF22; Thu, 24 Nov 2022 23:45:26 -0800 (PST) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NJRhz0nlCzmW72; Fri, 25 Nov 2022 15:44:51 +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; Fri, 25 Nov 2022 15:45:24 +0800 From: Ziyang Xuan To: , , , , , , , , CC: Subject: [PATCH net 0/2] octeontx2-pf: Fix several bugs in exception paths Date: Fri, 25 Nov 2022 15:45:21 +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 potential memory leak in otx2_init_tc() octeontx2-pf: Fix a potential double free in otx2_sq_free_sqbs() drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 1 + drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.25.1