From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 75759A0096 for ; Wed, 10 Apr 2019 10:08:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 217045B3E; Wed, 10 Apr 2019 10:08:00 +0200 (CEST) Received: from mail-vk1-f193.google.com (mail-vk1-f193.google.com [209.85.221.193]) by dpdk.org (Postfix) with ESMTP id E325C58C6 for ; Wed, 10 Apr 2019 10:07:55 +0200 (CEST) Received: by mail-vk1-f193.google.com with SMTP id x194so367878vke.0 for ; Wed, 10 Apr 2019 01:07:55 -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=c9Tght7XIp7faNnyp7xymQ7yJqwFqU/jPMIZ7avoz9w=; b=VEFzaX7pgS0P+TnEiFwYKmT13tn9ZdZZICj1rWwL2/MiWxl9HCShkpU1g68hV2S/ae 55RcHABM1R7F9JQ0k3gZ55tA/N0c+kL8s8Qs2ZElsJFLMGch90LqfNuGs5M8EFeymp6g JWMuaqANeYMMLefOr1XUmwSW1sDMHsLwLZFDdBAUAQUcU40JOO6qXDYojAEkVTS4Xgzn jHeyLjDI02JPUUxI/cCz2Dee70OjtnWN8hzF63RL+UCXGT71ne62qtv/A7iG7pkM2JcJ UawT7MszpApcxlfOEkbX+i2VsiWHiikx+fggHlRa5x0G5ZKntQ8mPRf7Od+h2CdsHaEs 3/zg== X-Gm-Message-State: APjAAAWY/uAhCrqSyw/Rhp0Nb7ZOGvXuTbMUa88A6Fnugk1P7InGi/Wp gww0Gw70mnObIytLUO+gbmBjEeLTpjyckUx0VD0iPg== X-Google-Smtp-Source: APXvYqx3Etl3WhYLBmB3gjQCQZYxY81SGPrzG2xYqLhIPnKzeWnydoQ5uUEcytlh7bzY/NGB4yrC6D3bhMkDuVho8Y4= X-Received: by 2002:a1f:7d4e:: with SMTP id y75mr22651772vkc.53.1554883675332; Wed, 10 Apr 2019 01:07:55 -0700 (PDT) MIME-Version: 1.0 References: <20190409133622.14729-1-i.maximets@samsung.com> <2419f57d-3283-0fae-745d-002d7ff500e7@samsung.com> In-Reply-To: <2419f57d-3283-0fae-745d-002d7ff500e7@samsung.com> From: David Marchand Date: Wed, 10 Apr 2019 10:07:44 +0200 Message-ID: To: Ilya Maximets Cc: Maxime Coquelin , Tiwei Bie , dev , Jens Freimann , Dariusz Stojaczyk , dpdk stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [PATCH] vhost: fix passing destroyed device to destroy callback X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Wed, Apr 10, 2019 at 9:53 AM Ilya Maximets wrote: > On 10.04.2019 10:24, David Marchand wrote: > > For vhost maintainers, looking at vhost_user_add_connection, aren't we > leaking a vid on errors ? either when new_connection notifier returns an > error, or after calling destroy_connection. > > I think that you're right. > I spotted that too yesterday while preparing this patch, just had no time > to > check deeper. It should be safe to call 'vhost_destroy_device' in these > cases. > Yes, that's my understanding too. -- David Marchand