efifb: exit if framebuffer address is invalid
authorMatthew Garrett <mjg59@srcf.ucam.org>
Mon, 13 Apr 2009 21:39:44 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 22:04:29 +0000 (15:04 -0700)
commit133bb070e94ab41d750c6f2160c8843e46f11b78
tree843aaa121f13ed754c8f14bd7011591035ac1550
parent0ca1071f7dbd673de826eb3fb01bfdfd1d423433
efifb: exit if framebuffer address is invalid

efifb will attempt to ioremap a framebuffer even if its starting address
is 0, failing and causing an ugly backtrace in the process.  Exit before
probing if this is the case.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Peter Jones <pjones@redhat.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/efifb.c