diff options
author | Pankaj Dabade <pdabade@nvidia.com> | 2015-02-12 15:58:56 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2015-02-17 10:12:43 -0800 |
commit | 73a561a53469912d94c0dea866646c87ec257bef (patch) | |
tree | eaaad3875106a8a7ed231e1564b21160f75ed0c3 /drivers | |
parent | c85af3d2d99e91fc08f55a4620a1a4880c62aae7 (diff) |
video: fbcon: Keep atleast one mode in modelist
Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.
Bug 200036424
Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/707309
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 487ffaf216e8..db0378d738bb 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -589,8 +589,8 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, * displayed on 'mode' device. */ fb_info->info->mode = (struct fb_videomode*) NULL; - - memset(&fb_info->info->var, 0x0, sizeof(fb_info->info->var)); + fb_add_videomode(&tegra_dc_vga_mode, &fb_info->info->modelist); + fb_videomode_to_var(&fb_info->info->var, &tegra_dc_vga_mode); tegra_dc_set_mode(fb_info->win.dc, &mode); mutex_unlock(&fb_info->info->lock); |