diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-08 08:27:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-08 08:27:47 +0100 |
commit | 29ac6ac467831e9b261465f13e871bc6bf9324a4 (patch) | |
tree | 17a5968802f131304a16a63450fb956356904634 /lib | |
parent | a2b318fe2142f6032040a0702887086071b05ff6 (diff) | |
parent | 274e0b8dc48956babeaa2faf70bf8066e656b621 (diff) | |
download | barebox-29ac6ac467831e9b261465f13e871bc6bf9324a4.tar.gz barebox-29ac6ac467831e9b261465f13e871bc6bf9324a4.tar.xz |
Merge branch 'for-next/imx'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gui/graphic_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gui/graphic_utils.c b/lib/gui/graphic_utils.c index 4c1885d55b..2fe9fa358a 100644 --- a/lib/gui/graphic_utils.c +++ b/lib/gui/graphic_utils.c @@ -249,6 +249,10 @@ struct screen *fb_create_screen(struct fb_info *info) { struct screen *sc; + if (!info->xres || !info->yres || !info->line_length || + !info->screen_base) + return ERR_PTR(-EINVAL); + sc = xzalloc(sizeof(*sc)); sc->s.x = 0; |