spi/omap2_mcspi: Check params before dereference or use
authorScott Ellis <scott@jumpnowtek.com>
Mon, 24 May 2010 14:20:27 +0000 (14:20 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 25 May 2010 06:23:15 +0000 (00:23 -0600)
commit99f1a43f436a6a92d15bddfeb65f3a920c8b88d3
tree3aef4ab77ca8d3bb72f0eb0d3bbd9842e25948e6
parent4743a0f88c4000dfa3c422ecc4d750d3a3410550
spi/omap2_mcspi: Check params before dereference or use

Check spi->chip_select for range before use.

Signed-off-by: Scott Ellis <scott@jumpnowtek.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/omap2_mcspi.c