Skip to content

Commit fc493cd

Browse files
committed
hos: pull missed se adjusted return values
And fix nogc patches.
1 parent 0805f61 commit fc493cd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bootloader/hos/hos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static bool _get_fs_exfat_compatible(link_t *info, u32 *hos_revision)
668668
if (strcmp((char *)ki->kip1->name, "FS"))
669669
continue;
670670

671-
if (!se_sha_hash_256_oneshot(sha_buf, ki->kip1, ki->size))
671+
if (se_sha_hash_256_oneshot(sha_buf, ki->kip1, ki->size))
672672
break;
673673

674674
pkg2_get_ids(&kip_ids, &fs_ids_cnt);

bootloader/hos/pkg2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ const char *pkg2_patch_kips(link_t *info, char *patch_names)
542542

543543
// Check if current KIP not hashed and hash it.
544544
if (kip_hash[0] == 0)
545-
if (!se_sha_hash_256_oneshot(kip_hash, ki->kip1, ki->size))
545+
if (se_sha_hash_256_oneshot(kip_hash, ki->kip1, ki->size))
546546
memset(kip_hash, 0, sizeof(kip_hash));
547547

548548
// Check if kip is the expected version.

bootloader/hos/pkg2_patches.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ static const kip1_patch_t _fs_nogc_2200[] = {
877877
};
878878

879879
static const kip1_patchset_t _fs_patches_2200[] = {
880-
{ "nogc", _fs_nogc_2100 },
880+
{ "nogc", _fs_nogc_2200 },
881881
{ NULL, NULL }
882882
};
883883

@@ -889,7 +889,7 @@ static const kip1_patch_t _fs_nogc_2200_exfat[] = {
889889
};
890890

891891
static const kip1_patchset_t _fs_patches_2200_exfat[] = {
892-
{ "nogc", _fs_nogc_2100_exfat },
892+
{ "nogc", _fs_nogc_2200_exfat },
893893
{ NULL, NULL }
894894
};
895895

0 commit comments

Comments
 (0)