From 5fbd728962a521f04f01156f9bd466f0f1131f8f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 31 Dec 2019 13:29:08 -0800 Subject: [PATCH] exo: fix off-by-one --- exosphere/src/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/src/fuse.c b/exosphere/src/fuse.c index 62372bc77..77e6e2111 100644 --- a/exosphere/src/fuse.c +++ b/exosphere/src/fuse.c @@ -278,7 +278,7 @@ uint32_t fuse_get_expected_fuse_version(uint32_t target_firmware) { [ATMOSPHERE_TARGET_FIRMWARE_910] = 12, }; - if (target_firmware >= ATMOSPHERE_TARGET_FIRMWARE_COUNT) { + if (target_firmware > ATMOSPHERE_TARGET_FIRMWARE_COUNT) { generic_panic(); }