mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 11:51:21 +00:00
multiboot: Use signed type for negative error numbers
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> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6769da29c7
commit
5f370b1463
1
hw/pc.c
1
hw/pc.c
@ -634,6 +634,7 @@ static int load_multiboot(void *fw_cfg,
|
|||||||
printf("WARNING: Too many modules loaded, aborting.\n");
|
printf("WARNING: Too many modules loaded, aborting.\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
next_initrd = strchr(initrd_filename, ',');
|
next_initrd = strchr(initrd_filename, ',');
|
||||||
if (next_initrd)
|
if (next_initrd)
|
||||||
*next_initrd = '\0';
|
*next_initrd = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user