spi/spidev: check message size before copying
authorDomen Puncer <domen.puncer@telargo.com>
Wed, 23 May 2007 20:57:39 +0000 (13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:12 +0000 (20:14 -0700)
commitda90fa8ff671a0139772ec3b3e82c06077e82122
treebf648a91c12174ec0bd32a013cdfc63d62f70753
parentb7add02d6247bff34005e040347d81777c80931c
spi/spidev: check message size before copying

Message size needs to be checked before copying, or bad things could
happen.

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spidev.c