]> err.no Git - linux-2.6/commit
[PATCH] i2c: Several PEC-related fixes in software SMBus emulation
authorHideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
Sun, 25 Sep 2005 15:01:11 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:07 +0000 (14:02 -0700)
commit5c50d1885981537ff3b8df6433951de6c9cb72cb
tree1440c92b1716fb27a93c96fc9494aa7980421d95
parent0f69a612f950f7508e556bf1b09390087d112115
[PATCH] i2c: Several PEC-related fixes in software SMBus emulation

Fix several errors in I2C SMBus emulation when PEC is used:
* Weird logic error in SMBus Write Word transactions.
* Wrong buffer size, affecting SMBus Block Write transactions.
* Potential buffer overrun in SMBus Block Write transactions.

From: Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
 drivers/i2c/i2c-core.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/i2c-core.c