diff mbox

ath_hif_usb: don't oops if fw not found

Message ID 201002251203.33410.helmut.schaa@googlemail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Helmut Schaa Feb. 25, 2010, 11:03 a.m. UTC
None
diff mbox

Patch

diff --git a/ath/ath9k/ath_hif_usb.c b/ath/ath9k/ath_hif_usb.c
index 481dc67..9ee74c0 100644
--- a/ath/ath9k/ath_hif_usb.c
+++ b/ath/ath9k/ath_hif_usb.c
@@ -898,6 +898,8 @@  static int hif_init_dev(struct hif_device_usb *hif_dev, const char *fw_name)
 {
 	int r;
 
+	init_usb_anchor(&hif_dev->rx_submitted);
+
 	r = request_firmware(&hif_dev->firmware, fw_name, &hif_dev->udev->dev);
 	if (r) {
 		dev_err(&hif_dev->udev->dev, "ath_hif_usb: firmware "
@@ -905,8 +907,6 @@  static int hif_init_dev(struct hif_device_usb *hif_dev, const char *fw_name)
 		goto out;
 	}
 
-	init_usb_anchor(&hif_dev->rx_submitted);
-
 	if (ar9271_alloc_urbs(hif_dev))
 		goto fail_urbs;