aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb/omapfb-ioctl.c
diff options
context:
space:
mode:
authorJani Nikula <ext-jani.1.nikula@nokia.com>2010-03-18 05:32:06 -0400
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-05-18 07:14:29 -0400
commit27b67c92a30967e3a9e9ea082d4ca4bc6882f879 (patch)
treec5186c7b62b552839265581d7c6903cb86394902 /drivers/video/omap2/omapfb/omapfb-ioctl.c
parent238a41329ca208d1170962260babb428b6e222c2 (diff)
OMAP: DSS2: check lock_fb_info() return value
Give up if lock_fb_info() fails, following the same convention as other lock_fb_info() users. Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-ioctl.c')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c
index 2c0f01c44aab..9c7361871d78 100644
--- a/drivers/video/omap2/omapfb/omapfb-ioctl.c
+++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c
@@ -183,7 +183,8 @@ int omapfb_update_window(struct fb_info *fbi,
183 struct omapfb2_device *fbdev = ofbi->fbdev; 183 struct omapfb2_device *fbdev = ofbi->fbdev;
184 int r; 184 int r;
185 185
186 lock_fb_info(fbi); 186 if (!lock_fb_info(fbi))
187 return -ENODEV;
187 omapfb_lock(fbdev); 188 omapfb_lock(fbdev);
188 189
189 r = omapfb_update_window_nolock(fbi, x, y, w, h); 190 r = omapfb_update_window_nolock(fbi, x, y, w, h);