usb/mcs7830: Don't use buffers from stack for USB transfers
commit6d317482944250228255bcbe97a95b7e7ad9a538
authorChristian Eggers <christian.eggers@kathrein.de>
Wed, 21 Jan 2009 20:56:24 +0000 (21 12:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 20:56:24 +0000 (21 12:56 -0800)
tree699fd50b7ff360c0cb0c82cf1f28388d8996d461
parent0b491eee46012772cbf029450d123e933c2e7940
usb/mcs7830: Don't use buffers from stack for USB transfers

mcs7830_set_reg() and mcs7830_get_reg() are called with buffers
from stack which must not be used directly for USB transfers.
This causes corruption of the stack particulary on non x86
architectures because DMA may be used for these transfers.

Signed-off-by: Christian Eggers <christian.eggers@kathrein.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/mcs7830.c