net/usb/r8152: make sure the USB buffer is DMA-able
authorhayeswang <hayeswang@realtek.com>
Wed, 31 Jul 2013 09:21:25 +0000 (17:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 21:49:13 +0000 (14:49 -0700)
commit31787f5398c3c5aced755e8abd5ae00a2c371cd4
tree3ab1264fefcfd31691e5787a924a680e403054d7
parent543ae7f9c4e69816043ac3b526310353b413b325
net/usb/r8152: make sure the USB buffer is DMA-able

Allocate the required memory before calling usb_control_msg. And
the additional memory copy is necessary.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c