From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbZGXTX4 (ORCPT ); Fri, 24 Jul 2009 15:23:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753531AbZGXTXz (ORCPT ); Fri, 24 Jul 2009 15:23:55 -0400 Received: from www84.your-server.de ([213.133.104.84]:53905 "EHLO www84.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbZGXTXz (ORCPT ); Fri, 24 Jul 2009 15:23:55 -0400 Subject: [PATCH] fbcon: rotate upside down crash From: Stefani Seibold To: linux-kernel@vger.kernel.org Cc: Andrew Morton , adaplas@pol.net Content-Type: text/plain Date: Fri, 24 Jul 2009 21:23:46 +0200 Message-Id: <1248463426.30437.12.camel@wall-e> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: stefani@seibold.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Attached is a bug fix for the frame console. The current frame buffer console upside down functionality will crash using a font which has not a width of multiple by 8. The following 1 liner will fix the rotate_ud() function, fbcon_rotate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.31-rc4/drivers/video/console/fbcon_rotate.h 2009-07-24 20:37:31.000000000 +0200 +++ linux-2.6.31-rc4.orig/drivers/video/console/fbcon_rotate.h 2009-06-10 05:05:27.000000000 +0200 @@ -45,7 +45,7 @@ width = (width + 7) & ~7; for (i = 0; i < height; i++) { - for (j = 0; j < width - shift; j++) { + for (j = 0; j < width; j++) { if (pattern_test_bit(j, i, width, in)) pattern_set_bit(width - (1 + j + shift), height - (1 + i),