diff options
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/hif_usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index ac82911ee609..77b359162d6c 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c | |||
| @@ -609,6 +609,10 @@ static int ath9k_hif_usb_alloc_tx_urbs(struct hif_device_usb *hif_dev) | |||
| 609 | 609 | ||
| 610 | return 0; | 610 | return 0; |
| 611 | err: | 611 | err: |
| 612 | if (tx_buf) { | ||
| 613 | kfree(tx_buf->buf); | ||
| 614 | kfree(tx_buf); | ||
| 615 | } | ||
| 612 | ath9k_hif_usb_dealloc_tx_urbs(hif_dev); | 616 | ath9k_hif_usb_dealloc_tx_urbs(hif_dev); |
| 613 | return -ENOMEM; | 617 | return -ENOMEM; |
| 614 | } | 618 | } |
