提交 37a05af0 编写于 作者: J Jes Sorensen 提交者: Blue Swirl

load_multiboot(): get_image_size() returns int

Do not store return of get_image_size() in a uint32_t as it makes it
impossible to detect error returns from get_image_size.
Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 7390cdfb
......@@ -252,7 +252,7 @@ int load_multiboot(void *fw_cfg,
do {
char *next_space;
uint32_t mb_mod_length;
int mb_mod_length;
uint32_t offs = mbs.mb_buf_size;
next_initrd = strchr(initrd_filename, ',');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册