* [PATCH] omapfb: Add sanity check to omapfb_update_window_async
@ 2007-01-14 13:38 Arnaud Patard
2007-01-26 21:54 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Patard @ 2007-01-14 13:38 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
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>
---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: omapfb_update_window_async_check.patch --]
[-- Type: text/x-diff, Size: 880 bytes --]
---
drivers/video/omap/omapfb_main.c | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)
Index: linux-omap-2.6/drivers/video/omap/omapfb_main.c
===================================================================
--- linux-omap-2.6.orig/drivers/video/omap/omapfb_main.c 2007-01-14 14:10:26.000000000 +0100
+++ linux-omap-2.6/drivers/video/omap/omapfb_main.c 2007-01-14 14:10:29.000000000 +0100
@@ -626,10 +626,15 @@ int omapfb_update_window_async(struct fb
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)
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] omapfb: Add sanity check to omapfb_update_window_async
2007-01-14 13:38 [PATCH] omapfb: Add sanity check to omapfb_update_window_async Arnaud Patard
@ 2007-01-26 21:54 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-01-26 21:54 UTC (permalink / raw)
To: Arnaud Patard; +Cc: linux-omap-open-source
* Arnaud Patard <arnaud.patard@rtp-net.org> [070114 05:45]:
>
> 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>
> ---
> ---
> drivers/video/omap/omapfb_main.c | 9 7 + 2 - 0 !
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> Index: linux-omap-2.6/drivers/video/omap/omapfb_main.c
> ===================================================================
> --- linux-omap-2.6.orig/drivers/video/omap/omapfb_main.c 2007-01-14 14:10:26.000000000 +0100
> +++ linux-omap-2.6/drivers/video/omap/omapfb_main.c 2007-01-14 14:10:29.000000000 +0100
> @@ -626,10 +626,15 @@ int omapfb_update_window_async(struct fb
> 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)
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-26 21:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-14 13:38 [PATCH] omapfb: Add sanity check to omapfb_update_window_async Arnaud Patard
2007-01-26 21:54 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox