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>
master
Kevin Wolf 2009-11-18 12:15:21 +01:00 committed by Anthony Liguori
parent 6769da29c7
commit 5f370b1463
1 changed files with 1 additions and 0 deletions

View File

@ -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';