ath9k_htc: Fix error path in URB allocation
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Mon, 21 Feb 2011 02:20:38 +0000 (07:50 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Feb 2011 21:25:28 +0000 (16:25 -0500)
commit512c044a299f133c8dc86dd5fa6378d745489286
tree1b51b37995ba5c30551d139ffa2a76b6937bd939
parent3e3f1d197f5a432b961fadb35604dba92583945e
ath9k_htc: Fix error path in URB allocation

ath9k_hif_usb_alloc_urbs() takes care of freeing
all the allocated URBs for the various endpoints when
an error occurs. Calling ath9k_hif_usb_dealloc_urbs() would
cause a panic since the URBs have already been freed.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hif_usb.c