From patchwork Sat Mar 4 02:43:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13159772 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 151CDC61DA3 for ; Sat, 4 Mar 2023 02:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbjCDCoV (ORCPT ); Fri, 3 Mar 2023 21:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjCDCoU (ORCPT ); Fri, 3 Mar 2023 21:44:20 -0500 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A8F619F for ; Fri, 3 Mar 2023 18:44:19 -0800 (PST) Received: by mail-qt1-x82c.google.com with SMTP id z6so5159107qtv.0 for ; Fri, 03 Mar 2023 18:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1677897859; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a0CHDuylwM1/yyyS+zFHav6yB4uVh2p2GXtTo14DZbw=; b=KpX0f5rDRgP420+l5Q9aAeQMWLq/ITJ7P9HA6AtMw7jd1lBAWWX4UtOqOGSJd3adbc PFNCWH6VtBOzyQO+RXV1U1/x0NFxiNqlVVZKH0XOD7yUtqq3HHPOw9JR0ChLdGzE/fP1 bnAq1CqrR4Ng9K0aRoyVSD4Tg6RQ1nYkdzcq4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677897859; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a0CHDuylwM1/yyyS+zFHav6yB4uVh2p2GXtTo14DZbw=; b=qQD3sj/0BWtWp/Xx1p6rKc4X+Eyb7HF5g1eP1RhelKfrR7M5qkWo/RYl1ZpK53JynI AjhojDbjaSNGML1zfsPhZSksd/Hxorp7R99g4yXGHf8oLAX6EcGE+wqVl/2wqmoS90Ox sML+GahiV9KvXt05k8qVvOejNJUUvqXTv8iEV0oBghp6v0uzvlDyvsvpKRyl4BMks/Go qjjc1QSEkrumjNfLKrXAbOyMBaHVnCQrydGuEa7yWiVhXSyMkLELf9cQrLyPg0YNy/sg 7/YW4k+iscpRb18Veu9UouBc87Q0UtBc0G7WZvAORmirWhYvaeoN/tA3FtIg4kFAPyjV zRwQ== X-Gm-Message-State: AO0yUKX3NZJsKhCMlBg5eIsYWYVxs1HwBhTJP3kGtQUW/s9SbtfisYTj j20X5bL/uQnmXzn5rUaMn4Pl2g== X-Google-Smtp-Source: AK7set+nv/p7ia0q7RnhiFnYcpclR49Ac1ApClAABrxVZ6iIEbEa2KJIN/rgQPNTF4iLF/dzvZUcCw== X-Received: by 2002:a05:622a:1a1c:b0:3b8:6788:bf25 with SMTP id f28-20020a05622a1a1c00b003b86788bf25mr6264828qtb.23.1677897858361; Fri, 03 Mar 2023 18:44:18 -0800 (PST) Received: from localhost.attlocal.net (108-196-84-92.lightspeed.irvnca.sbcglobal.net. [108.196.84.92]) by smtp.gmail.com with ESMTPSA id h20-20020ac846d4000000b003b64f1b1f40sm2963845qto.40.2023.03.03.18.44.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 18:44:17 -0800 (PST) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, gospo@broadcom.com Subject: [PATCH net 0/2] bnxt_en: 2 bug fixes Date: Fri, 3 Mar 2023 18:43:56 -0800 Message-Id: <1677897838-23562-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series fixes 2 issues: 1. A potential order-5 memory allocation failure during open. 2. Double memory free bug during shutdown. Michael Chan (1): bnxt_en: Avoid order-5 memory allocation for TPA data Selvin Xavier (1): bnxt_en: Fix the double free during device removal drivers/net/ethernet/broadcom/bnxt/bnxt.c | 25 +++++++++---------- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 ++ 2 files changed, 14 insertions(+), 13 deletions(-)