Message ID | 20180619014319.28272-4-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B86A60230 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECAC328681 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:32:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0D6C28C80; Tue, 19 Jun 2018 02:32:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 8344328681 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:32:50 +0000 (UTC) Received: from localhost ([::1]:38659 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 1fV6Rt-0004a4-NJ for patchwork-qemu-devel@patchwork.kernel.org; Mon, 18 Jun 2018 22:32:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5iB-0001me-DN for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5iA-0008TQ-IN for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:45:35 -0400 Received: from mail-ot0-x22f.google.com ([2607:f8b0:4003:c0f::22f]:43001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5iA-0008Sy-CV; Mon, 18 Jun 2018 21:45:34 -0400 Received: by mail-ot0-x22f.google.com with SMTP id 92-v6so20759825otw.9; Mon, 18 Jun 2018 18:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZKw+r7bk5hiEPkua1fk1T201N1pmVswNZ5NoMgzHu00=; b=CRdUMzMwTz33etAQXO5a3qP3MtO24cllNm8cwa+vccpRlfpnikapVDLCiJvoU6vZqj Z7OSb9MR/hzRqqnsWU0aOVc08+oOZGjdLTyTcO1EfFSJeCzAvOX6wjhhl4l0/4pdJgcN 5YOC4Esyf/8u+CU2TdWhxTHlhEZ5IyUWaXM/fEHdxH/5hqy5jcNnfumPQ33J6mWBTjAu v5DZMe1oJDwZxEhY9ogmPqrD4aLxNH1Hi/ZxtFyZ9xhgDPgudHKiyFI8Bc+1enPZdxMv qCcWiRHdR3Ix9Qb8dcTosxClO5YJhfsWO1q4rlY2avpRKeKOCusfCkOVHqVD2YowPvcL 6EjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ZKw+r7bk5hiEPkua1fk1T201N1pmVswNZ5NoMgzHu00=; b=V1kBKSzdgbAwePONA7WIfmEHMLT8FKTFql6Z82aRSDCAemTaY1ODVMHEpe2hhAEjwY 9irbnkhilUiI1hXBoVaFWhGclfFG2ICTAl4LGQC5xiPFNrbfO9x9kYPQ8YacfeHHlcDy 7wYBGtI/9BngAWjR//pTzQNAm+WSt2D8TDa/0WadJRUqSuL0ndM120TR3lAhkPu0igHO E6H/chA6RvTkAkXgifWpRf1QPFgMjar0CLPnz5gIt3a/+79dm3VlaxCVQaIw1NZDxkWl 1tUabnh442qE5NEvS5vCJi7mxkj319r3fsg0M69V5HCeTaXyBDp6kPn5iYmCnyGZUHh1 EB6w== X-Gm-Message-State: APt69E3Qc6oR0Yp2d7Lm5+XcbizggOYeO4ikjHL50UtpH2K2ki4Ohy2a qb5NZfmrcm16tJsy77xVggP/i/MD X-Google-Smtp-Source: ADUXVKJVmtC2dwSxZFqQ+LX/ibtvBO3p6iDndhPkUHhLDZxmgCPTGox6aRP1wwwYHajKGfevv6wntQ== X-Received: by 2002:a9d:5550:: with SMTP id h16-v6mr8511244oti.24.1529372733229; Mon, 18 Jun 2018 18:45:33 -0700 (PDT) Received: from localhost ([2600:1700:70:e488:b0ee:9bda:ee6f:91be]) by smtp.gmail.com with ESMTPSA id w88-v6sm8268593ota.48.2018.06.18.18.45.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 18:45:32 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 20:41:29 -0500 Message-Id: <20180619014319.28272-4-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> References: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::22f Subject: [Qemu-devel] [PATCH 003/113] virtio-balloon: unref the memory region before continuing X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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> Cc: qemu-stable@nongnu.org, Tiwei Bie <tiwei.bie@intel.com>, "Michael S . Tsirkin" <mst@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 37cde38982..651fa70ca6 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -234,6 +234,7 @@ static void virtio_balloon_handle_output(VirtIODevice *vdev, VirtQueue *vq) memory_region_is_rom(section.mr) || memory_region_is_romd(section.mr)) { trace_virtio_balloon_bad_addr(pa); + memory_region_unref(section.mr); continue; }