diff options
-rw-r--r-- | drivers/video/tegra/fb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index d0e7809cd83d..e3fae09106af 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -556,6 +556,11 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, tegra_fb_find_best_mode(&var, &info->modelist); } + /* Fail if no supported modes were found */ + if (info->mode == NULL) { + dev_warn(&fb_info->ndev->dev, "Display %s not supported\n", specs->monitor); + return; + } /* Prepare fb info with new mode details */ fb_videomode_to_var(&info->var, info->mode); event.info = fb_info->info; |