Skip to content

Commit 690cdd1

Browse files
committed
fix faulty tvOS livefs panic detection
1 parent f926152 commit 690cdd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

checkra1n/kpf/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,8 @@ static void kpf_cmd(void)
24162416
// iOS/iPadOS 15.0 beta 1 or tvOS 18.2 beta 1 onwards
24172417
if((livefs_string_match != NULL) != (
24182418
(gKernelVersion.darwinMajor >= 21 && xnu_platform() == PLATFORM_IOS) ||
2419-
(gKernelVersion.darwinMajor >= 24 && gKernelVersion.darwinMinor >= 2 && xnu_platform() == PLATFORM_TVOS)))
2419+
(((gKernelVersion.darwinMajor >= 24 && gKernelVersion.darwinMinor >= 2)
2420+
|| gKernelVersion.darwinMajor >= 25) && xnu_platform() == PLATFORM_TVOS)))
24202421
panic("livefs panic doesn't match expected Darwin version");
24212422
#endif
24222423

0 commit comments

Comments
 (0)