diff --git a/drivers/video/fb.c b/drivers/video/fb.c index d9300d3142..e805705ead 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -803,6 +803,13 @@ void fb_pollnotify(FAR struct fb_vtable_s *vtable) fb = vtable->priv; + /* Prevent calling before getting the vtable. */ + + if (fb == NULL) + { + return; + } + if (fb->vsyncoffset > 0) { wd_start(&fb->wdog, fb->vsyncoffset, fb_do_pollnotify, (wdparm_t)fb);