]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite75b60fd786fd2d3db6e90008fdd48598450e1f4
tree3ab1264fefcfd31691e5787a924a680e403054d7
parentc327ff5a1a52daf7d730b9d760ce49d60b598d5b
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