From mboxrd@z Thu Jan 1 00:00:00 1970 From: Knut Petersen Subject: [PATCH 1/1: 2.6.15-rc5-mm3] Fix cyblafb: fillrect bugs and white space Date: Wed, 21 Dec 2005 09:56:42 +0100 Message-ID: <43A918CA.9050409@t-online.de> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EozmK-00071P-Nk for linux-fbdev-devel@lists.sourceforge.net; Wed, 21 Dec 2005 00:56:56 -0800 Received: from mailout09.sul.t-online.com ([194.25.134.84]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1EozmJ-0002Gc-9g for linux-fbdev-devel@lists.sourceforge.net; Wed, 21 Dec 2005 00:56:56 -0800 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Andrew Morton Cc: "Antonino A. Daplas" , linux-fbdev-devel@lists.sourceforge.net 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=B4t 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 diff -uprN -X linux/Documentation/dontdiff -x '*.bak' -x '*.ctx' linuxori= g/drivers/video/cyblafb.c linux/drivers/video/cyblafb.c --- linuxorig/drivers/video/cyblafb.c 2005-12-15 10:35:14.000000000 +0100 +++ linux/drivers/video/cyblafb.c 2005-12-21 09:14:45.000000000 +0100 @@ -23,7 +23,7 @@ #include #include