]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2c20e51ee6bd991b2dcf003bdc88a30d26a6829
tree843aaa121f13ed754c8f14bd7011591035ac1550
parent8bb40a4a559aa343d775276dfa9b2f3c735e0cb2
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