* [Qemu-devel] [PATCH] multiboot: Use signed type for negative error numbers
@ 2009-11-18 11:15 Kevin Wolf
2009-12-04 9:54 ` [Qemu-devel] Patch mismerge (was: [PATCH] multiboot: Use signed type for negative error numbers) Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wolf @ 2009-11-18 11:15 UTC (permalink / raw)
To: qemu-devel; +Cc: Kevin Wolf
In mb_mod_length a return value is stored that is negative in error case. With
an unsigned type the check goes wrong.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
hw/pc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index 7c791c4..cb3b6c9 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -619,7 +619,7 @@ static int load_multiboot(void *fw_cfg,
uint32_t mb_mod_info = 0x100;
uint32_t mb_mod_cmdline = 0x300;
uint32_t mb_mod_start = mh_load_addr;
- uint32_t mb_mod_length = mb_kernel_size;
+ int mb_mod_length = mb_kernel_size;
char *next_initrd;
char *next_space;
int mb_mod_count = 0;
--
1.6.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-devel] Patch mismerge (was: [PATCH] multiboot: Use signed type for negative error numbers)
2009-11-18 11:15 [Qemu-devel] [PATCH] multiboot: Use signed type for negative error numbers Kevin Wolf
@ 2009-12-04 9:54 ` Kevin Wolf
2009-12-04 10:11 ` [Qemu-devel] Patch mismerge Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wolf @ 2009-12-04 9:54 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
Hi Anthony,
the description of this patch made it into commit 5f370b1, but the
content of this commit is obviously nonsense (adds only an empty line).
It's still uint32_t in current master. Can you take the patch into your
queue once again? It should still apply cleanly.
Kevin
Am 18.11.2009 12:15, schrieb Kevin Wolf:
> In mb_mod_length a return value is stored that is negative in error case. With
> an unsigned type the check goes wrong.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> hw/pc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 7c791c4..cb3b6c9 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -619,7 +619,7 @@ static int load_multiboot(void *fw_cfg,
> uint32_t mb_mod_info = 0x100;
> uint32_t mb_mod_cmdline = 0x300;
> uint32_t mb_mod_start = mh_load_addr;
> - uint32_t mb_mod_length = mb_kernel_size;
> + int mb_mod_length = mb_kernel_size;
> char *next_initrd;
> char *next_space;
> int mb_mod_count = 0;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-04 10:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 11:15 [Qemu-devel] [PATCH] multiboot: Use signed type for negative error numbers Kevin Wolf
2009-12-04 9:54 ` [Qemu-devel] Patch mismerge (was: [PATCH] multiboot: Use signed type for negative error numbers) Kevin Wolf
2009-12-04 10:11 ` [Qemu-devel] Patch mismerge Kevin Wolf
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).