]> 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)
commit9fe66f1411426410dfe7c556153eb41cb6429190
tree3ab1264fefcfd31691e5787a924a680e403054d7
parent9b0704fb7298c0a577defc39db43be3e4b762361
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