brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.4 / 0336-drm-vc4-Fix-NULL-deref-in-HDMI-init-error-path.patch
1 From 00dc0773c1af03a24f76c53223ab0c3d1fc7debb Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Mon, 4 Apr 2016 14:25:59 -0700
4 Subject: [PATCH 336/381] drm/vc4: Fix NULL deref in HDMI init error path
5
6 If you make it here other than through err_destroy_encoder, vc4->hdmi
7 is still NULL.
8
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 (cherry picked from commit 5883980313af70aec0ceebaef6ef0709726e5e63)
11 ---
12 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
16 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
17 @@ -573,7 +573,7 @@ err_unprepare_hsm:
18 err_unprepare_pix:
19 clk_disable_unprepare(hdmi->pixel_clock);
20 err_put_i2c:
21 - put_device(&vc4->hdmi->ddc->dev);
22 + put_device(&hdmi->ddc->dev);
23
24 return ret;
25 }