broadcom: fix issues detected by UBSan
This provides fixes for different issues detected by the Undefined Behaviour Sanitizer (UBSan) when running CTS test, for all the Broadcom drivers: vc4, v3d and v3dv.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This provides fixes for different issues detected by the Undefined Behaviour Sanitizer (UBSan) when running CTS test, for all the Broadcom drivers: vc4, v3d and v3dv.