Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d64977... Commit: d6497700879beeaaae208c0e9fd10b74dc44db5e Parent: 3ce92a2a7b03dae6b7778e2a5ff52f2042512887 Author: Geert Uytterhoeven <geert@linux-m68k.org> AuthorDate: Sun May 18 20:47:15 2008 +0200 Committer: Linus Torvalds <torvalds@linux-foundation.org> CommitDate: Sun May 18 13:28:49 2008 -0700 m68k: dnfb doesnt check for Apollo The Apollo frame buffer device driver (dnfb) doesn't check whether it's actually running on Apollo 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> --- drivers/video/dnfb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/video/dnfb.c b/drivers/video/dnfb.c index b083ea7..606da04 100644 --- a/drivers/video/dnfb.c +++ b/drivers/video/dnfb.c @@ -284,6 +284,9 @@ int __init dnfb_init(void) { int ret; + if (!MACH_IS_APOLLO) + return -ENODEV; + if (fb_get_options("dnfb", NULL)) return -ENODEV; -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
