All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] ppc_oldworld: fix kernel_size and initrd_size sign
@ 2009-01-19  3:55 François Revol
  0 siblings, 0 replies; only message in thread
From: François Revol @ 2009-01-19  3:55 UTC (permalink / raw)
  To: qemu-devel

both variables are declared unsigned but checked for < 0 in various
places.
This ensures the fallbacks work.

François.

Signed-off-by: François Revol <revol@free.fr>
Index: hw/ppc_oldworld.c
===================================================================
--- hw/ppc_oldworld.c   (révision 6368)
+++ hw/ppc_oldworld.c   (copie de travail)
@@ -121,7 +121,8 @@
     m48t59_t *m48t59;
     int linux_boot, i;
     ram_addr_t ram_offset, vga_ram_offset, bios_offset,
vga_bios_offset;
-    uint32_t kernel_base, kernel_size, initrd_base, initrd_size;
+    uint32_t kernel_base, initrd_base;
+    int32_t kernel_size, initrd_size;
     PCIBus *pci_bus;
     MacIONVRAMState *nvr;
     int vga_bios_size, bios_size;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-19  3:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19  3:55 [Qemu-devel] [PATCH] ppc_oldworld: fix kernel_size and initrd_size sign François Revol

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.