From: Knut Petersen Cyblafb silently assumes that there is no drawing operation with width > 4096 and height > 4096. This is ok for almost all cases as monitors of such dimensions are uncommon ... I donīt know of such a beast. But bit_clear_margins() tries to fill the entire right margin with one call to the drivers fillrect function. In that case height > 4096 is often true. This problem and also the basestride calculation is fixed with this patch. Some whitespace fixes are included, too. Signed-off-by: Knut Petersen Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/cyblafb.c | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) diff -puN drivers/video/cyblafb.c~fbdev-fixed-and-updated-cyblafb-fix drivers/video/cyblafb.c --- devel/drivers/video/cyblafb.c~fbdev-fixed-and-updated-cyblafb-fix 2006-01-03 21:57:00.000000000 -0800 +++ devel-akpm/drivers/video/cyblafb.c 2006-01-03 21:57:00.000000000 -0800 @@ -23,7 +23,7 @@ #include #include