]> Git Repo - linux.git/commitdiff
ath9k: Fix regression with Atheros 9271
authorMark O'Donovan <[email protected]>
Sat, 11 Jul 2020 04:33:24 +0000 (05:33 +0100)
committerKalle Valo <[email protected]>
Mon, 20 Jul 2020 16:34:28 +0000 (19:34 +0300)
This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes: 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=208251
Signed-off-by: Mark O'Donovan <[email protected]>
Reported-by: Roman Mamedov <[email protected]>
Tested-by: Viktor Jägersküpper <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/net/wireless/ath/ath9k/hif_usb.c

index 4ed21dad6a8e16040d177c3ff9ef7c7e09035b3f..3f563e02d17daa315d6241477142e42f190fcefa 100644 (file)
@@ -733,11 +733,13 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
                        return;
                }
 
+               rx_buf->skb = nskb;
+
                usb_fill_int_urb(urb, hif_dev->udev,
                                 usb_rcvintpipe(hif_dev->udev,
                                                 USB_REG_IN_PIPE),
                                 nskb->data, MAX_REG_IN_BUF_SIZE,
-                                ath9k_hif_usb_reg_in_cb, nskb, 1);
+                                ath9k_hif_usb_reg_in_cb, rx_buf, 1);
        }
 
 resubmit:
This page took 0.061513 seconds and 4 git commands to generate.