[PATCH] scx200_acb: Fix the block transactions
authorJean Delvare <khali@linux-fr.org>
Sat, 1 Jul 2006 15:06:43 +0000 (17:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 Jul 2006 22:43:06 +0000 (15:43 -0700)
commitc3efacaa68a75049a859cbfd03d52dfdebb7527b
treeda3110f8c6754c55edd758d1d1bd1607e13cc322
parentfd627a01477dadaef3bc8556e5e9d0ef80310c3a
[PATCH] scx200_acb: Fix the block transactions

The scx200_acb i2c bus driver pretends to support SMBus block
transactions, but in fact it implements the more simple I2C block
transactions. Additionally, it lacks sanity checks on the length
of the block transactions, which could lead to a buffer overrun.

This fixes an oops reported by Alexander Atanasov:
http://marc.theaimsgroup.com/?l=linux-kernel&m=114970382125094

Thanks to Ben Gardner for fixing my bugs :)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/scx200_acb.c