Blame 0500-qxl-disallow-unknown-revisions.patch

5544c1
From 4b9d4103e5ff91b022ee8e9522040829f009543a Mon Sep 17 00:00:00 2001
Hans de Goede c8dfc6
From: Alon Levy <alevy@redhat.com>
Hans de Goede c8dfc6
Date: Tue, 21 Aug 2012 13:51:32 +0300
5544c1
Subject: [PATCH] qxl: disallow unknown revisions
Hans de Goede c8dfc6
Hans de Goede c8dfc6
Signed-off-by: Alon Levy <alevy@redhat.com>
Hans de Goede c8dfc6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede c8dfc6
---
5544c1
 hw/qxl.c | 6 +++---
5544c1
 1 file changed, 3 insertions(+), 3 deletions(-)
Hans de Goede c8dfc6
Hans de Goede c8dfc6
diff --git a/hw/qxl.c b/hw/qxl.c
5544c1
index 59bf822..71879fe 100644
Hans de Goede c8dfc6
--- a/hw/qxl.c
Hans de Goede c8dfc6
+++ b/hw/qxl.c
5544c1
@@ -1873,9 +1873,9 @@ static int qxl_init_common(PCIQXLDevice *qxl)
Hans de Goede c8dfc6
         break;
5544c1
 #endif
5544c1
     default:
5544c1
-        pci_device_rev = QXL_DEFAULT_REVISION;
5544c1
-        io_size = msb_mask(QXL_IO_RANGE_SIZE * 2 - 1);
5544c1
-        break;
Hans de Goede c8dfc6
+        error_report("Invalid revision %d for qxl device (max %d)",
Hans de Goede c8dfc6
+                     qxl->revision, QXL_DEFAULT_REVISION);
Hans de Goede c8dfc6
+        return -1;
Hans de Goede c8dfc6
     }
Hans de Goede c8dfc6
 
Hans de Goede c8dfc6
     pci_set_byte(&config[PCI_REVISION_ID], pci_device_rev);
Hans de Goede c8dfc6
-- 
5544c1
1.7.12.1
Hans de Goede c8dfc6