]> git.baikalelectronics.ru Git - kernel.git/commit
USBNET: fix handling padding packet
authorMing Lei <ming.lei@canonical.com>
Mon, 23 Sep 2013 12:59:35 +0000 (20:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Sep 2013 19:42:49 +0000 (15:42 -0400)
commit9f10b786e20c5632e5fd301f3885070736688b6f
treed9002cf7a4c4af8c3cf132708bacb1f137dc7977
parentf95de7137c9ee7d93a584e6a70ffbf51e6806f05
USBNET: fix handling padding packet

Commit 2af590676cb24(USBNET: support DMA SG) introduces DMA SG
if the usb host controller is capable of building packet from
discontinuous buffers, but missed handling padding packet when
building DMA SG.

This patch attachs the pre-allocated padding packet at the
end of the sg list, so padding packet can be sent to device
if drivers require that.

Reported-by: David Laight <David.Laight@aculab.com>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c
include/linux/usb/usbnet.h