From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 92E1EA0C47 for ; Tue, 6 Jul 2021 15:28:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B3F14120E; Tue, 6 Jul 2021 15:28:03 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 0CB6F4120E for ; Tue, 6 Jul 2021 15:28:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625578081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K4CjbFJgQfg8Oyoclll9gYl6SC9fH0oF+EibxcWj8SY=; b=bXIa6zSaPp1z5YXyl8HKO+Vz/LqRi2eeeE/vnAfqBFW1qWoC3BZw3KY6oP+inR1r0dQmJ7 RV3BmpMn42iWPjSADe1k40ESguvbuGIWLYcpwOlZS7w9OzQgWuHHX0covrsod3gQMzwu/2 TTWgFWgUH2LKrZNppy/Sj9DJpimO4Cw= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-326-ibTbJ1WINO6U42AcBP5Mog-1; Tue, 06 Jul 2021 09:28:00 -0400 X-MC-Unique: ibTbJ1WINO6U42AcBP5Mog-1 Received: by mail-vs1-f70.google.com with SMTP id s3-20020a0561023643b029028b8cdc2b67so309528vsu.5 for ; Tue, 06 Jul 2021 06:28:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K4CjbFJgQfg8Oyoclll9gYl6SC9fH0oF+EibxcWj8SY=; b=gWCVAXu7Szv0SEEpRLYfceHja+s+Akf+wGpOLNFumxYIttl0jQE0JydSCHqH0ZwkVd VZyd1IG2uCBX+XuiC0oqSuXFMLf4lTndNWfXqiUY8RQ2LtKIigcIUiAAQBwBz5ECoku5 YnCDi+9Gv/9Pn4kS34a7FaRXgFGsXQp9Q/rvViECz0CcrIcDrTSrKivL7wY7vCWnzgZq 0e9x58XNdyh42YGHu+6sgW4esDfBIdrTAU9pMdlUkCH23XGPIHu+06VThEY1faZOWJ8S pdrNh5IiIYApnPmimSuZaA/2jIxaWdjm+BAJR531zHMx9xgjhob8d5FSvT1g4nrl1Lkn fnOA== X-Gm-Message-State: AOAM530u3jh2lGhcK3Yjxu52l1EDIfQkl743O8ELm0FjseFCMKq+zO5e PjlhsUshC4OAb/AStgUREh7hWgi6RiIc4bQuEHY4y0ZvQAC7tbcSm6eXdzEn5JvK5Iv/nGBgoDw 5nV3lT6MbXzkc9zWJjvJ+NVk= X-Received: by 2002:a67:f3d1:: with SMTP id j17mr7640266vsn.18.1625578079889; Tue, 06 Jul 2021 06:27:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRcbmhZ0UQJzaWgdaQHAkvtui0MsyN36d6wuHmSXTc6zkAxcH4Jl5qCchmGrXTWRL4gLQSUusX70iZcc7POY8= X-Received: by 2002:a67:f3d1:: with SMTP id j17mr7640244vsn.18.1625578079639; Tue, 06 Jul 2021 06:27:59 -0700 (PDT) MIME-Version: 1.0 References: <20210706085643.5088-1-david.marchand@redhat.com> In-Reply-To: From: David Marchand Date: Tue, 6 Jul 2021 15:27:48 +0200 Message-ID: To: "Wang, Haiyue" Cc: "dev@dpdk.org" , "stable@dpdk.org" , "Yang, Qiming" , "Zhang, Qi Z" , "Stillwell Jr, Paul M" Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH] net/ice: fix memzone leak when firmware is missing X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Tue, Jul 6, 2021 at 2:53 PM Wang, Haiyue wrote: > > > The function 'ice_deinit_hw' should be used. ;-) > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/intel/ice > > /ice_main.c#n4508 > > > > Well I was inspired by ice_dev_close(), so I guess this code too could > > use some cleanup but I don't have the hw anymore to test this change. > > I'll trust you and simply update ice_dev_init. Adding to this, there are other potential leaks if ice_flow_init() or ice_reset_fxp_resource() fails. Probably worth opening a bz for later processing. WDYT? -- David Marchand