Commit a19e6c6b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: fbcon.c

drivers/video/console/fbcon.c: In function `fbcon_set_font':
drivers/video/console/fbcon.c:2000: error: invalid lvalue in decrement
parent ecf86065
......@@ -1996,8 +1996,10 @@ static inline int fbcon_set_font(struct vc_data *vc, struct console_font_op *op)
font length must be multiple of 256, at least. And 256 is multiple
of 4 */
k = 0;
while (p > new_data)
k += *--(u32 *) p;
while (p > new_data) {
p = (u8 *)((u32 *)p - 1);
k += *(u32 *) p;
}
FNTSUM(new_data) = k;
/* Check if the same font is on some other console already */
for (i = 0; i < MAX_NR_CONSOLES; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment