From nobody Mon Feb 9 23:01:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529375610566237.12632933006455; Mon, 18 Jun 2018 19:33:30 -0700 (PDT) Received: from localhost ([::1]:38659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV6SX-0004a4-Q8 for importer@patchew.org; Mon, 18 Jun 2018 22:33:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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) 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) 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) From: Michael Roth 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-stable@nongnu.org, Tiwei Bie , "Michael S . Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Tiwei Bie Signed-off-by: Tiwei Bie Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin (cherry picked from commit b86107ab43b804e899a226fe287e34ab8acef596) Signed-off-by: Michael Roth --- hw/virtio/virtio-balloon.c | 1 + 1 file changed, 1 insertion(+) 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; } =20 --=20 2.11.0