Skip to content

Commit

Permalink
drm/vc4: Fix NULL deref in HDMI init error path
Browse files Browse the repository at this point in the history
If you make it here other than through err_destroy_encoder, vc4->hdmi
is still NULL.

Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
anholt committed Apr 14, 2016
1 parent 08302c3 commit 5883980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)
err_unprepare_pix:
clk_disable_unprepare(hdmi->pixel_clock);
err_put_i2c:
put_device(&vc4->hdmi->ddc->dev);
put_device(&hdmi->ddc->dev);

return ret;
}
Expand Down

0 comments on commit 5883980

Please sign in to comment.