[PATCH] drm/vc4: hdmi: Fix off by ones in vc4_hdmi_read/write()

Maxime Ripard maxime at cerno.tech
Thu Sep 10 10:19:50 UTC 2020


On Thu, Sep 10, 2020 at 01:07:48PM +0300, Dan Carpenter wrote:
> The variant->registers[] has ->num_registers elements so the >
> comparison needs to be changes to >= to prevent an out of bounds
> access.
> 
> Fixes: 311e305fdb4e ("drm/vc4: hdmi: Implement a register layout abstraction")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Applied, thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200910/d4ab88dd/attachment.sig>


More information about the dri-devel mailing list