]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitddcc9ebdc56e0a0a493ed905c791f0618f4ea9a6
treeda3110f8c6754c55edd758d1d1bd1607e13cc322
parent05814f723237e8b3a6bb752d403b4808f49e951c
[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