This patch makes sure that the fb_info pointer given to
omapfb_update_window_async is not null.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
void (*callback)(void *),
void *callback_data)
{
- struct omapfb_plane_struct *plane = fbi->par;
- struct omapfb_device *fbdev = plane->fbdev;
+ struct omapfb_plane_struct *plane;
+ struct omapfb_device *fbdev;
struct fb_var_screeninfo *var;
+ if (!fbi)
+ return -EINVAL;
+
+ plane = fbi->par;
+ fbdev = plane->fbdev;
var = &fbi->var;
if (win->x >= var->xres || win->y >= var->yres)