Message ID | 1459957128-17685-3-git-send-email-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A71B09F3D1 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 15:40:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1798C201D3 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 15:40:31 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 77174201B9 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 15:40:30 +0000 (UTC) Received: from localhost ([::1]:43847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1anpZF-0004Jg-Sz for patchwork-qemu-devel@patchwork.kernel.org; Wed, 06 Apr 2016 11:40:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1anpXp-0001KD-7e for qemu-devel@nongnu.org; Wed, 06 Apr 2016 11:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1anpXl-0000TL-DT for qemu-devel@nongnu.org; Wed, 06 Apr 2016 11:39:01 -0400 Received: from mail-qg0-x241.google.com ([2607:f8b0:400d:c04::241]:32913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1anpXl-0000TA-9Q for qemu-devel@nongnu.org; Wed, 06 Apr 2016 11:38:57 -0400 Received: by mail-qg0-x241.google.com with SMTP id 7so1872660qgj.0 for <qemu-devel@nongnu.org>; Wed, 06 Apr 2016 08:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AhBI2HGvmZIrGPvcD0sWKjsDSq0phjuQyKoW6dBoQMI=; b=O7k/Rz+eV5bVI/QFjRgWyS28c8GOU1UpJPycANhzw12GhGBUDdiYHV4oHiKF12J19S ji5U6zyZkKuopYIfwe21kbKAGzZW3DWE45MBBOOafgeqkdLO93FMF9DpvQcgC3EtfGBX hz5wwmXzqNm8hotguXGn2wFVU7RapUSjz3+E6Yh56EuQzh38jaFxj4TNVWJDlq+hYa0o 0/sBzPDS3VfiXMLsIQR79Ax/BM4t2pCMGSIYW6MYTirn5u1zj0cknem/hawSyUS4j0gp RF2J3VVd7tZVl2imUHQzzUsdqZkQ5Fl0x8U4DS+JD/vUfQ8X89m7utjyEWcGYQRbhHon 0n+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=AhBI2HGvmZIrGPvcD0sWKjsDSq0phjuQyKoW6dBoQMI=; b=bsdauWLkSQsoj2YMvQvQntEfdighf5WbEJrpy2oZj9xADQma4S60rDahzoLkQLPVNS bnxQkSgd35XFeKHRpsFsEOPWBy7Bt3fvvbouAnay8mu9l2Q8FuwjKLopUQz2IRQ9BbG6 7TIyfKijFneGZGI5LNOd5WkEkmuAcwsX9mtKx4PgD3wDTV/YpxVonviPaoHJL8kHUEgR 7d/MC04vU/Vt4hupDB6+s7B7wRCjJuqch+shF8qL4v56a4Ey6GfaCqOdeQ3up5ISjEpQ tU8w8MrIkiDNX8ZXsL1NvYCrxxLAPd9Yv9NVr2g8Ry3ehVZ4oHs/dK03PS8Y0VsUezT4 ZqKQ== X-Gm-Message-State: AD7BkJKZhoDmUsL3rwOVKpp/ejCsXkhdxagRKixy9SXoRzK19/gYsvRRiI6y86h53K3LHw== X-Received: by 10.140.99.5 with SMTP id p5mr20208092qge.16.1459957136855; Wed, 06 Apr 2016 08:38:56 -0700 (PDT) Received: from localhost (bne75-h02-31-39-163-232.dsl.sta.abo.bbox.fr. [31.39.163.232]) by smtp.gmail.com with ESMTPSA id c90sm1478471qkj.47.2016.04.06.08.38.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2016 08:38:56 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Wed, 6 Apr 2016 17:38:48 +0200 Message-Id: <1459957128-17685-3-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1459957128-17685-1-git-send-email-marcandre.lureau@redhat.com> References: <1459957128-17685-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::241 Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>, n.nikolaev@virtualopensystems.com, mst@redhat.com Subject: [Qemu-devel] [PATCH 2/2] vhost-user: delete chardev on cleanup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/net/vhost-user.c b/net/vhost-user.c index 29fe097..2d7271a 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -144,6 +144,7 @@ static void vhost_user_cleanup(NetClientState *nc) qemu_purge_queued_packets(nc); qemu_chr_fe_release(s->chr); + qemu_chr_delete(s->chr); } static bool vhost_user_has_vnet_hdr(NetClientState *nc)