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 2A16C41C61 for ; Fri, 10 Feb 2023 12:55:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2110942686; Fri, 10 Feb 2023 12:55:35 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 9B15440687 for ; Fri, 10 Feb 2023 12:55:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676030132; 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=25nA5vwfYyr4NVOGz5mxqLpL4LlEwr7Ztmbeo9a8mkk=; b=XrztiyFz6AMB2JV2DRLxy/Nsm9KqAl0QqK6TpKq3IPsUYAZEXCShZA4lFWMWjAubimwb0C 4Bb6jnnyRy72VqJ0DTKwHHQbcaRyuJzgZxmfTf83O2za/TJSIU38MSiOBAWcNvyUDpw6tQ 1dsylgSnUIPxGBi4V/oMJgj12LS9unQ= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-133-iWB-mDKCPRO36TYA2wAr4g-1; Fri, 10 Feb 2023 06:55:31 -0500 X-MC-Unique: iWB-mDKCPRO36TYA2wAr4g-1 Received: by mail-pj1-f72.google.com with SMTP id gn18-20020a17090ac79200b0022bef1f49c9so4929987pjb.0 for ; Fri, 10 Feb 2023 03:55:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=25nA5vwfYyr4NVOGz5mxqLpL4LlEwr7Ztmbeo9a8mkk=; b=GjsJH4cGW90nHH9iBc40aHB9TzFm3JYd0Fb0DvaR9iaIm2oa5KSZWFQf5vc32JKbj3 j42O3z0pIV6nYK3KCFcpogaSJiTAYBiVhCFwogsxKSM3liDK02HEY5MX1s4elt7i83pE DrwaPZ6Nu/cKZILymzGvjJ2QKTxINxbFKwePQrMxFfH1u0Lxb2Hjt3peUFtZYP80/m2r twzjBfDSRddj3xmwPcN4DnMEyE0XtVdncWrr0abEKSCZ4p7+rD4GWoMxdp4F7zjRU22r svI9xKz+CgstxkSNayVABuzlX0YJ+j4vNTxyzuZN6L0xQjlu+7UvxWLkmLux/x800yow 2bGA== X-Gm-Message-State: AO0yUKWIpO5XpUdoNWrNYRmxzZaFZEXB0+PINI34UKlhRveLzQVpTq+S WnEXArDjusCupZu/dVySx+I4Xoc3QhG3gySH6jHW/gQP1sPi9yWVbGcR2j0iXwLqLMeQgQdsU8U z1yiMe3Ve+3dxIa21fUGkThE= X-Received: by 2002:a17:90a:ce8f:b0:230:89b2:fabd with SMTP id g15-20020a17090ace8f00b0023089b2fabdmr2223675pju.116.1676030130114; Fri, 10 Feb 2023 03:55:30 -0800 (PST) X-Google-Smtp-Source: AK7set9+Rim+pfstbapdpOkLFkMyBuzMB8LyG8iyOfazeFgh39uacpZtlCPd5AOLm81IUcetRe0eH2w10msQcIuEIh0= X-Received: by 2002:a17:90a:ce8f:b0:230:89b2:fabd with SMTP id g15-20020a17090ace8f00b0023089b2fabdmr2223672pju.116.1676030129825; Fri, 10 Feb 2023 03:55:29 -0800 (PST) MIME-Version: 1.0 References: <20230107151230.2539470-1-vfialko@marvell.com> <20230209132207.1994066-1-vfialko@marvell.com> In-Reply-To: From: David Marchand Date: Fri, 10 Feb 2023 12:55:18 +0100 Message-ID: Subject: Re: [PATCH v2] bus: fix leak for devices without driver To: Volodymyr Fialko Cc: Kevin Laatz , dev@dpdk.org, Bruce Richardson , =?UTF-8?Q?Morten_Br=C3=B8rup?= , jerinj@marvell.com, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Fri, Feb 10, 2023 at 10:29 AM Kevin Laatz wrote: > > On 09/02/2023 13:22, Volodymyr Fialko wrote: > > During the bus scan, memory for device configuration is allocated. > > Currently, if a driver wasn't attached to the device during initialization, > > memory for that device will not be released at bus cleanup. > > This patch address this issue and releases the memory for all allocated > > devices. > > > > Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") > > Cc: stable@dpdk.org > > > > Signed-off-by: Volodymyr Fialko > Acked-by: Kevin Laatz Applied, thanks. -- David Marchand