]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] I2C: Fix oops in eeprom driver
authorkhali@linux-fr.org <khali@linux-fr.org>
Thu, 7 Apr 2005 18:21:37 +0000 (11:21 -0700)
committerGreg KH <gregkh@suse.de>
Thu, 12 May 2005 17:00:19 +0000 (10:00 -0700)
commit82e59799aa57d2471333bf9ebbc9b4b2226b9790
tree8e1e386a91e4623bd5c81edc732e340829c05b3d
parent9150bdc0706e44d11efbc06e30a313d19ae3d842
[PATCH] I2C: Fix oops in eeprom driver

This fixes an oops in the eeprom driver. It was first reported here:
  http://bugzilla.kernel.org/show_bug.cgi?id=4347

It was additionally discussed here (while tracking a completely
different bug):
  http://archives.andrew.net.au/lm-sensors/msg30021.html

The patch is already in 2.6.12-rc1:
  http://linux.bkbits.net:8080/linux-2.5/cset@1.2227

The oops happens when one reads data from the sysfs interface file such
that (off < 16) and (count < 16 - off). For example "sensors" from
lm_sensors 2.9.0 does this, and causes the oops.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/chips/eeprom.c