Skip to content

Commit 52ae3f5

Browse files
fthaingeertu
authored andcommitted
m68k: mac: Fix macintosh_config for Mac II
When booted on my Mac II, the kernel prints this: Detected Macintosh model: 6 Apple Macintosh Unknown The catch-all entry ("Unknown") is mac_data_table[0] which is only needed in the unlikely event that the bootinfo model ID can't be matched. When model ID is 6, the search should begin and end at mac_data_table[1]. Fix the off-by-one error that causes this problem. Cc: Joshua Thompson <funaho@jurai.org> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Finn Thain <fthain@linux-m68k.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/d0f30a551064ca4810b1c48d5a90954be80634a9.1745453246.git.fthain@linux-m68k.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent a8a19a1 commit 52ae3f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/m68k/mac/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static void __init mac_identify(void)
793793
}
794794

795795
macintosh_config = mac_data_table;
796-
for (m = macintosh_config; m->ident != -1; m++) {
796+
for (m = &mac_data_table[1]; m->ident != -1; m++) {
797797
if (m->ident == model) {
798798
macintosh_config = m;
799799
break;

0 commit comments

Comments
 (0)