linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ath9k: Fix regression with Atheros 9271
@ 2020-07-11  4:33 Mark O'Donovan
  2020-07-15 15:17 ` Kalle Valo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark O'Donovan @ 2020-07-11  4:33 UTC (permalink / raw)
  To: linux-wireless
  Cc: kvalo, jaegerskuepper, hqjagain, ath9k-devel, davem, kuba,
	Mark O'Donovan

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 )

https://bugzilla.kernel.org/show_bug.cgi?id=208251

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
---
 drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c
index 4ed21dad6a8e..3f563e02d17d 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
@@ -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:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] ath9k: Fix regression with Atheros 9271
  2020-07-11  4:33 [PATCH 1/1] ath9k: Fix regression with Atheros 9271 Mark O'Donovan
@ 2020-07-15 15:17 ` Kalle Valo
  2020-07-16  8:01 ` Viktor Jägersküpper
  2020-07-20 16:37 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2020-07-15 15:17 UTC (permalink / raw)
  To: Mark O'Donovan
  Cc: linux-wireless, jaegerskuepper, hqjagain, ath9k-devel, davem,
	kuba, Mark O'Donovan

Mark O'Donovan <shiftee@posteo.net> wrote:

> 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 )
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=208251

These should be:

Fixes: 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=208251

But I can fix those during commit.

There are basically two options now, either take this patch or revert commit 2bbcaaee1fcb:

https://patchwork.kernel.org/patch/11637341/

I prefer taking Mark's patch but I would appreciate if people could provide
testing feedback.

-- 
https://patchwork.kernel.org/patch/11657669/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] ath9k: Fix regression with Atheros 9271
  2020-07-11  4:33 [PATCH 1/1] ath9k: Fix regression with Atheros 9271 Mark O'Donovan
  2020-07-15 15:17 ` Kalle Valo
@ 2020-07-16  8:01 ` Viktor Jägersküpper
  2020-07-16  9:10   ` Kalle Valo
  2020-07-20 16:37 ` Kalle Valo
  2 siblings, 1 reply; 5+ messages in thread
From: Viktor Jägersküpper @ 2020-07-16  8:01 UTC (permalink / raw)
  To: Mark O'Donovan, linux-wireless
  Cc: kvalo, hqjagain, ath9k-devel, davem, kuba, Roman Mamedov

[I fixed my e-mail address and CC'ed Roman]

Mark O'Donovan:
> 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 )
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=208251
> 
> Signed-off-by: Mark O'Donovan <shiftee@posteo.net>

This fixes the issue for me. Please don't forget:
Reported-by: Roman Mamedov <rm@romanrm.net>

And if you want to add this:
Tested-by: Viktor Jägersküpper <viktor_jaegerskuepper@freenet.de>

These additional lines are mainly useful if the patch doesn't work for someone
else and they decide to report it, so hopefully Roman and I would receive the
report, too. And we already have three threads for this bug.

> ---
>  drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c
> index 4ed21dad6a8e..3f563e02d17d 100644
> --- a/drivers/net/wireless/ath/ath9k/hif_usb.c
> +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
> @@ -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:
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] ath9k: Fix regression with Atheros 9271
  2020-07-16  8:01 ` Viktor Jägersküpper
@ 2020-07-16  9:10   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2020-07-16  9:10 UTC (permalink / raw)
  To: Viktor Jägersküpper
  Cc: Mark O'Donovan, linux-wireless, hqjagain, ath9k-devel, davem,
	kuba, Roman Mamedov

Viktor Jägersküpper <viktor_jaegerskuepper@freenet.de> writes:

> [I fixed my e-mail address and CC'ed Roman]
>
> Mark O'Donovan:
>> 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 )
>> 
>> https://bugzilla.kernel.org/show_bug.cgi?id=208251
>> 
>> Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
>
> This fixes the issue for me. Please don't forget:
> Reported-by: Roman Mamedov <rm@romanrm.net>
>
> And if you want to add this:
> Tested-by: Viktor Jägersküpper <viktor_jaegerskuepper@freenet.de>
>
> These additional lines are mainly useful if the patch doesn't work for someone
> else and they decide to report it, so hopefully Roman and I would receive the
> report, too. And we already have three threads for this bug.

Thanks, I will. Or well, actually patchwork automatically does that :)

-- 
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] ath9k: Fix regression with Atheros 9271
  2020-07-11  4:33 [PATCH 1/1] ath9k: Fix regression with Atheros 9271 Mark O'Donovan
  2020-07-15 15:17 ` Kalle Valo
  2020-07-16  8:01 ` Viktor Jägersküpper
@ 2020-07-20 16:37 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2020-07-20 16:37 UTC (permalink / raw)
  To: Mark O'Donovan
  Cc: linux-wireless, jaegerskuepper, hqjagain, ath9k-devel, davem,
	kuba, Mark O'Donovan

Mark O'Donovan <shiftee@posteo.net> wrote:

> 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 <shiftee@posteo.net>
> Reported-by: Roman Mamedov <rm@romanrm.net>
> Tested-by: Viktor Jägersküpper <viktor_jaegerskuepper@freenet.de>

Patch applied to wireless-drivers.git, thanks.

92f53e2fda8b ath9k: Fix regression with Atheros 9271

-- 
https://patchwork.kernel.org/patch/11657669/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-20 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11  4:33 [PATCH 1/1] ath9k: Fix regression with Atheros 9271 Mark O'Donovan
2020-07-15 15:17 ` Kalle Valo
2020-07-16  8:01 ` Viktor Jägersküpper
2020-07-16  9:10   ` Kalle Valo
2020-07-20 16:37 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).