diff options
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 24b36f795151..ca5ca5ae061d 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -1049,7 +1049,7 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, | |||
1049 | * NOTE: strictly conforming cdc-ether devices should expect | 1049 | * NOTE: strictly conforming cdc-ether devices should expect |
1050 | * the ZLP here, but ignore the one-byte packet. | 1050 | * the ZLP here, but ignore the one-byte packet. |
1051 | */ | 1051 | */ |
1052 | if ((length % dev->maxpacket) == 0) { | 1052 | if (!(info->flags & FLAG_SEND_ZLP) && (length % dev->maxpacket) == 0) { |
1053 | urb->transfer_buffer_length++; | 1053 | urb->transfer_buffer_length++; |
1054 | if (skb_tailroom(skb)) { | 1054 | if (skb_tailroom(skb)) { |
1055 | skb->data[skb->len] = 0; | 1055 | skb->data[skb->len] = 0; |