mbox series

[v2,0/2] drm/vc4: hdmi: Fix pointer dereference before check

Message ID 20221110134752.238820-1-jose.exposito89@gmail.com (mailing list archive)
Headers show
Series drm/vc4: hdmi: Fix pointer dereference before check | expand

Message

José Expósito Nov. 10, 2022, 1:47 p.m. UTC
v1 -> v2:

As suggested by Maxime, I simplified a bit vc4_hdmi_supports_scrambling()
making it receive a struct vc4_hdmi as argument instead of a struct
drm_encoder.

Also, variables are initialized close to where they are used in the
second patch.

José Expósito (2):
  drm/vc4: hdmi: Pass vc4_hdmi to vc4_hdmi_supports_scrambling()
  drm/vc4: hdmi: Fix pointer dereference before check

 drivers/gpu/drm/vc4/vc4_hdmi.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Maxime Ripard Nov. 14, 2022, 8:42 a.m. UTC | #1
On Thu, 10 Nov 2022 14:47:50 +0100, José Expósito wrote:
> v1 -> v2:
> 
> As suggested by Maxime, I simplified a bit vc4_hdmi_supports_scrambling()
> making it receive a struct vc4_hdmi as argument instead of a struct
> drm_encoder.
> 
> Also, variables are initialized close to where they are used in the
> second patch.
> 
> [...]

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime