diff options
-rw-r--r-- | at76_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2234,8 +2234,8 @@ static int at76_alloc_urbs(struct at76_priv *priv, buffer_size = sizeof(struct at76_tx_buffer) + MAX_PADDING_SIZE; priv->tx_bulk_pipe = - usb_sndbulkpipe(udev, endpoint->bEndpointAddress), - priv->bulk_out_buffer = + usb_sndbulkpipe(udev, endpoint->bEndpointAddress); + priv->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); if (!priv->bulk_out_buffer) { err("couldn't allocate bulk_out_buffer"); |