Skip to content
Commit 96d7123e authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

video: bcm2708_fb: Disable FB if no displays found

If the firmware hasn't detected a display, the driver would assume
one display was available, but because it had failed to retrieve the
display size it would try to allocate a zero-sized buffer.

Avoid the allocation failure by bailing out early if no display is
found.

See: https://github.com/raspberrypi/linux/issues/3598



Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent c8ea02dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment