Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

m68k: macide doesnt check for Mac

The Macintosh IDE driver (macide) doesn't check whether it's actually running
on Mac hardware, causing a crash if it isn't.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
3ce92a2a 3f365e8e

+3
+3
drivers/ide/legacy/macide.c
··· 95 95 int irq; 96 96 hw_regs_t hw; 97 97 98 + if (!MACH_IS_MAC) 99 + return -ENODEV; 100 + 98 101 switch (macintosh_config->ide_type) { 99 102 case MAC_IDE_QUADRA: 100 103 base = IDE_BASE;