Skip to content

Commit e5d36fc

Browse files
Fearyncesschenx97
authored andcommitted
loader/mips64/linux: fix missing type args while loading kernel
1 parent e4e7a42 commit e5d36fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grub-core/loader/mips64/linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <grub/efi/efi.h>
2222
#include <grub/elf.h>
2323
#include <grub/elfload.h>
24+
#include <grub/file.h>
2425
#include <grub/loader.h>
2526
#include <grub/dl.h>
2627
#include <grub/mm.h>
@@ -387,7 +388,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
387388
if (argc == 0)
388389
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));
389390

390-
elf = grub_elf_open (argv[0]);
391+
elf = grub_elf_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
391392
if (! elf)
392393
return grub_errno;
393394

0 commit comments

Comments
 (0)