qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()
@ 2020-10-12 22:58 Klaus Herman
  2020-10-13  1:09 ` no-reply
  2020-10-13  8:34 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 3+ messages in thread
From: Klaus Herman @ 2020-10-12 22:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Klaus Herman, Paolo Bonzini,
	Daniel P. Berrangé, Eduardo Habkost

---
 hw/core/qdev-properties-system.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c
index 49bdd12..e3dca56 100644
--- a/hw/core/qdev-properties-system.c
+++ b/hw/core/qdev-properties-system.c
@@ -903,7 +903,7 @@ static void set_pci_host_devaddr(Object *obj, Visitor *v, const char *name,
     bus = val;
 
     p = (char *)e + 1;
-    if (qemu_strtoul(p, &e, 16, &val) < 0 || val > 0x1f || e == p) {
+    if (qemu_strtoul(p, &e, 16, &val) < 0 || val > 0xff || e == p) {
         goto inval;
     }
     if (*e == ':') {
-- 
2.28.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-13  8:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-12 22:58 [PATCH] hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr() Klaus Herman
2020-10-13  1:09 ` no-reply
2020-10-13  8:34 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).