summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-18 01:13:02 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-24 20:28:56 +0400
commite1b6a28ece14be0ec1cc4f00a306e11308e03cb3 (patch)
tree0effc27745d4863a373cfd1e968caeb617c4920c
parent9674eb10ca6c303646dcb5eb8974f2cbecc16dae (diff)
downloadlinux-sunxi-e1b6a28ece14be0ec1cc4f00a306e11308e03cb3.tar.xz
sunxi-disp: Add missing break
This fixes a kernel NULL ptr deref (trying to call hdmi functions before they are registered) when trying to use tv-out. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/video/sunxi/disp/disp_lcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/sunxi/disp/disp_lcd.c b/drivers/video/sunxi/disp/disp_lcd.c
index 7d33af0c0876..2f408f67582b 100644
--- a/drivers/video/sunxi/disp/disp_lcd.c
+++ b/drivers/video/sunxi/disp/disp_lcd.c
@@ -1510,6 +1510,7 @@ __u32 Disp_get_screen_scan_mode(__disp_tv_mode_t tv_mode)
case DISP_TV_MOD_1080I_50HZ:
case DISP_TV_MOD_1080I_60HZ:
ret = 1;
+ break;
case DISP_TV_MODE_EDID:
if (gdisp.init_para.hdmi_get_video_timing(tv_mode,
&video_timing) == 0)