From: Paul Mackerras <paulus@samba.org>
To: Russell King <rmk@arm.linux.org.uk>
Cc: A Guy Called Tyketto <tyketto@wizard.com>,
Dave Jones <davej@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: Linux 2.5.18-dj1
Date: Sun, 26 May 2002 21:42:00 +1000 (EST) [thread overview]
Message-ID: <15600.51720.488266.491713@argo.ozlabs.ibm.com> (raw)
In-Reply-To: <20020526090046.A32058@flint.arm.linux.org.uk>
Russell King writes:
> This oops has existed over several 2.5 versions. The following was thrown
> around to fix it (I don't remember who though).
>
> --- orig/drivers/video/fbcmap.c Fri May 3 11:12:44 2002
> +++ linux/drivers/video/fbcmap.c Fri May 10 19:39:38 2002
> @@ -150,9 +150,9 @@
> else
> tooff = from->start-to->start;
> size = to->len-tooff;
> - if (size > from->len-fromoff)
> + if (size > (int)(from->len-fromoff))
> size = from->len-fromoff;
> - if (size < 0)
> + if (size <= 0)
> return;
> size *= sizeof(u16);
That looks like my patch. It stops the oops (by fixing a signed
vs. unsigned comparison bug) but doesn't fix the colormap handling.
On my G4 powerbook, which has an ATI Rage 128 (Mobility M3 AGP 2x) the
screen colours are all totally wrong under X when I boot 2.5.18. I
have Option "UseFBDev" in my /etc/X11/XF86Config-4, so the X server is
using the kernel frame buffer driver to do colormap updates. (The
colours are all OK on the text consoles though.)
Paul.
next prev parent reply other threads:[~2002-05-26 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-26 1:44 Dave Jones
2002-05-26 7:53 ` A Guy Called Tyketto
2002-05-26 8:00 ` Russell King
2002-05-26 11:42 ` Paul Mackerras [this message]
2002-05-28 17:32 ` James Simmons
2002-05-28 17:31 ` James Simmons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15600.51720.488266.491713@argo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=tyketto@wizard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®