* [U-Boot] [PATCH] mx6: video_skip: Fix crash on NULL pointer
@ 2014-11-05 8:55 picmaster at mail.bg
2014-11-13 16:57 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: picmaster at mail.bg @ 2014-11-05 8:55 UTC (permalink / raw)
To: u-boot
From: Nikolay Dimitrov <picmaster@mail.bg>
Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
Cc: Stefano Babic <sbabic@denx.de>
---
arch/arm/imx-common/video.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c
index 8651b80..46f8a1e 100644
--- a/arch/arm/imx-common/video.c
+++ b/arch/arm/imx-common/video.c
@@ -11,6 +11,7 @@ int board_video_skip(void)
int i;
int ret;
char const *panel = getenv("panel");
+
if (!panel) {
for (i = 0; i < display_count; i++) {
struct display_info_t const *dev = displays+i;
@@ -31,11 +32,14 @@ int board_video_skip(void)
break;
}
}
+
if (i < display_count) {
ret = ipuv3_fb_init(&displays[i].mode, 0,
displays[i].pixfmt);
if (!ret) {
- displays[i].enable(displays+i);
+ if (displays[i].enable)
+ displays[i].enable(displays + i);
+
printf("Display: %s (%ux%u)\n",
displays[i].mode.name,
displays[i].mode.xres,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] mx6: video_skip: Fix crash on NULL pointer
2014-11-05 8:55 [U-Boot] [PATCH] mx6: video_skip: Fix crash on NULL pointer picmaster at mail.bg
@ 2014-11-13 16:57 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2014-11-13 16:57 UTC (permalink / raw)
To: u-boot
Hi Nikolay,
On 05/11/2014 09:55, picmaster at mail.bg wrote:
> From: Nikolay Dimitrov <picmaster@mail.bg>
>
> Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
Applied to -u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-13 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 8:55 [U-Boot] [PATCH] mx6: video_skip: Fix crash on NULL pointer picmaster at mail.bg
2014-11-13 16:57 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox