mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
13 lines
500 B
Diff
13 lines
500 B
Diff
diff --git a/grub-core/fs/f2fs.c b/grub-core/fs/f2fs.c
|
|
index df6beb544cbd..855e24618c2b 100644
|
|
--- a/grub-core/fs/f2fs.c
|
|
+++ b/grub-core/fs/f2fs.c
|
|
@@ -650,7 +650,7 @@ get_blkaddr_from_nat_journal (struct grub_f2fs_data *data, grub_uint32_t nid,
|
|
grub_uint16_t n = grub_le_to_cpu16 (data->nat_j.n_nats);
|
|
grub_uint16_t i;
|
|
|
|
- if (n >= NAT_JOURNAL_ENTRIES)
|
|
+ if (n > NAT_JOURNAL_ENTRIES)
|
|
return grub_error (GRUB_ERR_BAD_FS,
|
|
"invalid number of nat journal entries");
|
|
|