]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] spi: correct bus_num and buffer bug in spi core
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Thu, 7 Dec 2006 04:36:17 +0000 (20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:32 +0000 (08:39 -0800)
commit4740d387f3cb9e63f48f2488815b38a2c92755c8
treebc4da709250cfe0b18a5d5dc040e5af3ed57e94d
parented2908f31398049c4371de9b100700e80704e95f
[PATCH] spi: correct bus_num and buffer bug in spi core

Correct the following in driver/spi/spi.c in function spi_busnum_to_master:

 * must allow bus_num 0, the if is really not needed.
 * correct the name buffer which is too small for bus_num >= 10000. It

should be 9 bytes big, not 8.

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/spi/spi.c