diff options
author | Eric Anholt <eric@anholt.net> | 2016-04-05 00:25:59 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-04-14 22:23:11 +0300 |
commit | 5883980313af70aec0ceebaef6ef0709726e5e63 (patch) | |
tree | e341061a2cd45c3909d4184acaeb113cdeb49cb4 /drivers | |
parent | 08302c35b59d306ff37b996e56fb2a488c1d2c2e (diff) | |
download | linux-5883980313af70aec0ceebaef6ef0709726e5e63.tar.xz |
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: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index d8b864925fd3..fd2644d231ff 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -573,7 +573,7 @@ err_unprepare_hsm: 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; } |