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 changed files with 1 additions and 0 deletions
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");
|
||||
break;
|
||||
}
|
||||
|
||||
next_initrd = strchr(initrd_filename, ',');
|
||||
if (next_initrd)
|
||||
*next_initrd = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue