spi/mpc8xxx: fix buffer overrun on large transfers
authorchristophe leroy <christophe.leroy@c-s.fr>
Thu, 16 Sep 2010 07:05:25 +0000 (09:05 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 16 Sep 2010 20:07:45 +0000 (14:07 -0600)
commit37880c909c6a22674d3c0f83f2737264b4e60fe1
treeafb1c3738a0b8280db309cfc7c243ca556e8062f
parent9c03f1622af051004416dd3e24d8a0fa31e34178
spi/mpc8xxx: fix buffer overrun on large transfers

It fixes an issue when sending-only or receiving-only more than
PAGE_SIZE bytes.

Signed-off-by: christophe leroy <christophe.leroy@c-s.fr>
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_mpc8xxx.c