aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-07-13 15:31:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-07-13 15:31:51 -0400
commit815868e7b5c207ba42d5b317ccc51f8112732268 (patch)
treec0531faf1c8925ba36fc2cb6e9ac17b1ce0f35d5 /drivers/net/wireless/ath/ath9k
parent084cb0fe773dc3dbe2bb08039dbd0e9e93d103ce (diff)
parentf8036965ccec4d786d8bf09bf57b793542cb3dce (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r--drivers/net/wireless/ath/ath9k/hif_usb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c
index ad9134bddd1e..61c1bee3f26a 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
@@ -745,13 +745,17 @@ static int ath9k_hif_usb_alloc_urbs(struct hif_device_usb *hif_dev)
745 745
746 /* RX */ 746 /* RX */
747 if (ath9k_hif_usb_alloc_rx_urbs(hif_dev) < 0) 747 if (ath9k_hif_usb_alloc_rx_urbs(hif_dev) < 0)
748 goto err; 748 goto err_rx;
749 749
750 /* Register Read */ 750 /* Register Read */
751 if (ath9k_hif_usb_alloc_reg_in_urb(hif_dev) < 0) 751 if (ath9k_hif_usb_alloc_reg_in_urb(hif_dev) < 0)
752 goto err; 752 goto err_reg;
753 753
754 return 0; 754 return 0;
755err_reg:
756 ath9k_hif_usb_dealloc_rx_urbs(hif_dev);
757err_rx:
758 ath9k_hif_usb_dealloc_tx_urbs(hif_dev);
755err: 759err:
756 return -ENOMEM; 760 return -ENOMEM;
757} 761}