Message ID | 1463653560-26958-7-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@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1D34BF29F for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 19 May 2016 10:26:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 503D320219 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 19 May 2016 10:26:56 +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 A87BE20218 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 19 May 2016 10:26:55 +0000 (UTC) Received: from localhost ([::1]:49246 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 1b3LAM-0005D3-Ou for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 May 2016 06:26:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b3L9p-0005Ar-4l for qemu-devel@nongnu.org; Thu, 19 May 2016 06:26:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b3L9n-0005Ud-Nj for qemu-devel@nongnu.org; Thu, 19 May 2016 06:26:21 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b3L9n-0005UQ-JM for qemu-devel@nongnu.org; Thu, 19 May 2016 06:26:19 -0400 Received: by mail-qk0-x242.google.com with SMTP id i7so7121904qkd.1 for <qemu-devel@nongnu.org>; Thu, 19 May 2016 03:26:19 -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=xtkRiSuJukbRzYQY8dZ1OdTwHyVZu7bqT1VYDBh17hE=; b=Ut/3sT8WEompitnM4MRwwQBf7YTXonEgpOHL//I7bULH7/vk2GboO8vzyEVYNS7wX6 3xgCCo3Bgj4gxfsJN7hJGmG3dtgZKGzH+FvdPyKmKo1EmRN1CgOU48ge+U3AlbAh/ZWN WtSVkNBxkLThU5D620yPeeBaAVOQHhqhWNctebrDq7d+HF2s9O8lBdzm9a2RylfZiACu qaTkr4QE/yqttFo47pn8Q/8DDIcXPi2tfoxAfEuCkLCedyhNQz3vyy/kwPfPtehodXbB yIZNM8uCIBopkGfDTKc9cLBVbPgpguVyaj63cyUnCWpjk6erjYBO/Y/6POCBDhjrdm1G izTA== 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=xtkRiSuJukbRzYQY8dZ1OdTwHyVZu7bqT1VYDBh17hE=; b=NoSCQtrin6JJA4h/a3XFSmFfdkv311hjotxa28MeZCIGR/eU8dqkQhZRD1SFCRpwWZ Se+Zios/WMs3IqqfOZC3txl48hpz5cizWr5uc5k21PzHEEmdOWrc2KqZt/u7v417whhY XNYnYf8Vvck86IxkafBPQZxGDgRvUXxMZXGfJ9i7fWg9vtLNWl16ChCuWSqQ43D0xzjQ WW4+t0UMXAKxjFr0z0/s4RSeG4tCVpomeOfg11ky4xUBHrUCBs498QjyowA68CUpJjq4 JqQVQ6FD61muKDorRPXKTs88ijpwuOr7UTlAB8hgUls2xEsvAv+zwGAzL3wWwpjD/X3F Gi8w== X-Gm-Message-State: AOPr4FXAPZTot6uMExKAbe1uD1HBY7fVhzA5SPqDUVJoAHKN75Z47o76qxdPggpy5HEbRA== X-Received: by 10.55.172.15 with SMTP id v15mr13775588qke.45.1463653579276; Thu, 19 May 2016 03:26:19 -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 h6sm6250076qhd.47.2016.05.19.03.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 03:26:18 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Thu, 19 May 2016 12:26:00 +0200 Message-Id: <1463653560-26958-7-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1463653560-26958-1-git-send-email-marcandre.lureau@redhat.com> References: <1463653560-26958-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:c09::242 Subject: [Qemu-devel] [PATCH 6/6] virtio-gpu: fix ui idx check 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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>, kraxel@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-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/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 5811a2d..d1f25d5 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -878,7 +878,7 @@ static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info) { VirtIOGPU *g = opaque; - if (idx > g->conf.max_outputs) { + if (idx >= g->conf.max_outputs) { return -1; }