projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae5591e
)
freescale DIU: bug fix: add sanity check for AOI position
author
York Sun
<
[email protected]
>
Fri, 15 Aug 2008 07:40:29 +0000
(
00:40
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Aug 2008 15:35:43 +0000
(08:35 -0700)
AOI position cannot be negative.
Signed-off-by: York Sun <
[email protected]
>
Cc: Kumar Gala <
[email protected]
>
Cc: "Antonino A. Daplas" <
[email protected]
>
Cc: Krzysztof Helt <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/fsl-diu-fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fsl-diu-fb.c
b/drivers/video/fsl-diu-fb.c
index d9d24938da9e6abf19d2076b12c7bd7972332c5d..fb51197d1c98e227cabb96e8244585851a366ff2 100644
(file)
--- a/
drivers/video/fsl-diu-fb.c
+++ b/
drivers/video/fsl-diu-fb.c
@@
-479,6
+479,10
@@
static void adjust_aoi_size_position(struct fb_var_screeninfo *var,
base_plane_width = machine_data->fsl_diu_info[0]->var.xres;
base_plane_height = machine_data->fsl_diu_info[0]->var.yres;
+ if (mfbi->x_aoi_d < 0)
+ mfbi->x_aoi_d = 0;
+ if (mfbi->y_aoi_d < 0)
+ mfbi->y_aoi_d = 0;
switch (index) {
case 0:
if (mfbi->x_aoi_d != 0)