Commit 58839803 authored by Eric Anholt's avatar Eric Anholt

drm/vc4: Fix NULL deref in HDMI init error path

If you make it here other than through err_destroy_encoder, vc4->hdmi
is still NULL.
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 08302c35
...@@ -573,7 +573,7 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data) ...@@ -573,7 +573,7 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)
err_unprepare_pix: err_unprepare_pix:
clk_disable_unprepare(hdmi->pixel_clock); clk_disable_unprepare(hdmi->pixel_clock);
err_put_i2c: err_put_i2c:
put_device(&vc4->hdmi->ddc->dev); put_device(&hdmi->ddc->dev);
return ret; return ret;
} }
......
Markdown is supported
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