Skip to content
Commit d331f456 authored by Naushir Patuck's avatar Naushir Patuck Committed by Phil Elwell
Browse files

media: bcm2835-unicam: Fix for possible dummy buffer overrun



The Unicam hardware has been observed to cause a buffer overrun when using the
dummy buffer as a circular buffer. The conditions that cause the overrun are not
fully known, but it seems to occur when the memory bus is heavily loaded.

To avoid the overrun, program the hardware with a buffer size of 0 when using
the dummy buffer. This will cause overrun into the allocated dummy buffer, but
avoid out of bounds writes.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent f64b5666
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment