aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-wdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index 9734863a3a49..846dfa603447 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -696,7 +696,7 @@ next_desc:
696 goto err; 696 goto err;
697 697
698 desc->inbuf = usb_alloc_coherent(interface_to_usbdev(intf), 698 desc->inbuf = usb_alloc_coherent(interface_to_usbdev(intf),
699 desc->bMaxPacketSize0, 699 desc->wMaxCommand,
700 GFP_KERNEL, 700 GFP_KERNEL,
701 &desc->response->transfer_dma); 701 &desc->response->transfer_dma);
702 if (!desc->inbuf) 702 if (!desc->inbuf)