From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41702C4332F for ; Fri, 25 Nov 2022 07:45:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229617AbiKYHp3 (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: netdev@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