From patchwork Fri Nov 11 07:08:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ziyang Xuan (William)" X-Patchwork-Id: 13039760 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 72711C433FE for ; Fri, 11 Nov 2022 07:08:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233133AbiKKHIP (ORCPT ); Fri, 11 Nov 2022 02:08:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233127AbiKKHIH (ORCPT ); Fri, 11 Nov 2022 02:08:07 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B57779D0D; Thu, 10 Nov 2022 23:08:06 -0800 (PST) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N7qXV4X2VzHvmN; Fri, 11 Nov 2022 15:07:38 +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, 11 Nov 2022 15:08:04 +0800 From: Ziyang Xuan To: , , , , , , , , Subject: [PATCH net 0/4] octeon_ep: fix several bugs in exception paths Date: Fri, 11 Nov 2022 15:08:01 +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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Find several obvious bugs during code review in exception paths. Provide this patchset to fix them. Not tested, just compiled. Ziyang Xuan (4): octeon_ep: delete unnecessary napi rollback under set_queues_err in octep_open() octeon_ep: ensure octep_get_link_status() successfully before octep_link_up() octeon_ep: fix potential memory leak in octep_device_setup() octeon_ep: ensure get mac address successfully before eth_hw_addr_set() .../net/ethernet/marvell/octeon_ep/octep_main.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)