Message ID | 20181222095036.29743-23-marcel.apfelbaum@gmail.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-2.web.codeaurora.org (Postfix) with ESMTP id 35B0517D5 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 22 Dec 2018 10:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20320283A8 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 22 Dec 2018 10:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 112BA2846D; Sat, 22 Dec 2018 10:09:10 +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.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 B2D36283A8 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 22 Dec 2018 10:09:09 +0000 (UTC) Received: from localhost ([::1]:60741 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 1gaeDU-0003yw-RK for patchwork-qemu-devel@patchwork.kernel.org; Sat, 22 Dec 2018 05:09:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadwI-0006Xj-87 for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadwE-0006eV-He for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:19 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:50586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadw9-0006ZM-6p for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:15 -0500 Received: by mail-wm1-x343.google.com with SMTP id n190so7400061wmd.0 for <qemu-devel@nongnu.org>; Sat, 22 Dec 2018 01:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ee1OvyxgNjj/dtLFYkeAaONQE7uDVFlOxI8N9a7i8bk=; b=qG1BPCC0COH80y68aDr8pdqoSeBG5r4OxciDBvf9mA9dn8yQ7gVRYEORVsCPPQ9gcL SRNJ4Yz0n3KYYXjGiXUyzKgPgQY1C/ovvbYMW0FW/HYlxUJS0zScj1qVc+IySWKpbXWB mEdIKviMUdb6meuAavwSIWSagjtFwvxcMNFHHKPOrV7B8QHP+XYTYaHJePB6M/Wzm6ge raqwafDPYviaDi7sXCKYSSOaA5t5hhWGgGjzvY8bYmvaXFPhb8Y7cR4BfGB5fjRRHct0 Py35Ld8HBz/GcEK2mk4Winf0lODSEDWjisiLrrfuXQ5VE/K1zvOwNN2hE0sGOgfXsRdg 9FdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ee1OvyxgNjj/dtLFYkeAaONQE7uDVFlOxI8N9a7i8bk=; b=DhJ6FVhxI0bAOolGvHlvAmP11YNE2u0LePAF+v0AWtnMDkJNyjjJlD6mVrb7VVLMed KBpHY0YjtIP4jggZftx5Tu7LAsnK5HwGFFSTQQiKlQKyUgC7yS2FJeUzx5crZefOeky0 9xxWlZ4fbyZnTGu8xhtDaMtl7WxWcZ6dEDiyhpgzszBPpQwJ4cwfiftNdBCHSAlwpWko XDrtJaqj7umpL3748eNLuViUSJEFgcG/SjGFN91ui3WWcDZDmwI9EVsFfiAmT3cUI+c6 m9Yd7CYKgvMEHDZKnX55dKz4+gd1a9P9O2pLQPeOEPvxwZB5KYmAyxTeBTX9rlvjTS4o TcwQ== X-Gm-Message-State: AA+aEWYN6IlczyC9Po+Fr8nHTr2oEa76aFlW5+M1n4Twd7SX6fATzfLk nax0LNxAPjL9/bVg7kWZQAXhS6pz X-Google-Smtp-Source: ALg8bN7A5+A/kRIcJxMeY9gqETF3cIc4959Z5gaX8MOt2Gr3ZpdkrI81vza7VSz4eUg696PPYL3IZQ== X-Received: by 2002:a1c:2686:: with SMTP id m128mr5668326wmm.52.1545472271326; Sat, 22 Dec 2018 01:51:11 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id s3sm9557371wmj.23.2018.12.22.01.51.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 01:51:10 -0800 (PST) From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Sat, 22 Dec 2018 11:50:27 +0200 Message-Id: <20181222095036.29743-23-marcel.apfelbaum@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> References: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH PULL 22/31] hw/rdma: Do not use bitmap_zero_extend to free bitmap 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: yuval.shaia@oracle.com, pjp@fedoraproject.org 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 |
Series |
[PULL,01/31] hw/pvrdma: Check the correct return value
|
expand
|
diff --git a/hw/rdma/rdma_rm.c b/hw/rdma/rdma_rm.c index b7d4ebe972..ca127c8c26 100644 --- a/hw/rdma/rdma_rm.c +++ b/hw/rdma/rdma_rm.c @@ -43,7 +43,7 @@ static inline void res_tbl_free(RdmaRmResTbl *tbl) { qemu_mutex_destroy(&tbl->lock); g_free(tbl->tbl); - bitmap_zero_extend(tbl->bitmap, tbl->tbl_sz, 0); + g_free(tbl->bitmap); } static inline void *res_tbl_get(RdmaRmResTbl *tbl, uint32_t handle)