From: adaplas@hotpop.com (Antonino A. Daplas)
To: lm-sensors@vger.kernel.org
Subject: Who should I write to about this OOPS in 2,6,11-mm3?
Date: Thu, 19 May 2005 06:25:43 +0000 [thread overview]
Message-ID: <200503180411.04839.adaplas@hotpop.com> (raw)
In-Reply-To: <20050315050746.GB13009@kroah.com>
On Friday 18 March 2005 03:10, Jean Delvare wrote:
> Hi Tony, hi all,
> I think I found the problem. If count is less than in_row1, bad things
> will happen with the code above. Shame on me for not noticing when I
> wrote it in the first place.
>
> Suggested fix would be:
>
> --- linux-2.6.11.4/drivers/i2c/chips/eeprom.c.orig 2005-03-13
> 10:00:01.000000000 +0100 +++
> linux-2.6.11.4/drivers/i2c/chips/eeprom.c 2005-03-17 19:54:07.000000000
> +0100 @@ -130,7 +130,8 @@
>
> /* Hide Vaio security settings to regular users (16 first bytes) */
> if (data->nature = VAIO && off < 16 && !capable(CAP_SYS_ADMIN)) {
> - int in_row1 = 16 - off;
> + size_t in_row1 = 16 - off;
> + in_row1 = min(in_row1, count);
> memset(buf, 0, in_row1);
> if (count - in_row1 > 0)
> memcpy(buf + in_row1, &data->data[16], count - in_row1);
>
>
> Please test and report.
>
Tested on nvidiafb. No more hang, thanks.
I can test on savagefb too, if you want, but I expect the same result.
Tony
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Who should I write to about this OOPS in 2,6,11-mm3? Greg KH
2005-05-19 6:25 ` Antonino A. Daplas
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Antonino A. Daplas
[not found] ` <20050317154226.24c1f8f8.akpm@osdl.org>
[not found] ` <200503180754.21258.adaplas@hotpop.com>
2005-03-22 2:40 ` Andrew Morton
2005-03-22 2:59 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Antonino A. Daplas
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Antonino A. Daplas
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Antonino A. Daplas [this message]
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Antonino A. Daplas
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Andrew Morton
2005-05-19 6:25 ` Miles Lane
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Miles Lane
2005-05-26 9:05 ` [lm-sensors] Re: Who should I write to about this OOPS in 2, 6, Andrew Morton
2005-05-26 9:05 ` Greg KH
2005-05-26 9:05 ` Andrew Morton
2005-05-26 9:05 ` Miles Lane
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=200503180411.04839.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=lm-sensors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.