All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: ath6kl: reduce WARN to dev_dbg() in callback
@ 2023-01-26 18:24 Fedor Pchelkin
  2023-02-27 12:19 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Fedor Pchelkin @ 2023-01-26 18:24 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Fedor Pchelkin, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Alexey Khoroshilov, Oliver Neukum,
	Mohammed Shafi Shajakhan, linux-wireless, netdev, linux-kernel,
	lvc-project, syzbot+555908813b2ea35dae9a

The warn is triggered on a known race condition that is correctly handled.
Using WARN() hinders automated testing. Reducing severity.

Fixes: de2070fc4aa7 ("ath6kl: Fix kernel panic on continuous driver load/unload")
Reported-and-tested-by: syzbot+555908813b2ea35dae9a@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
---
 drivers/net/wireless/ath/ath6kl/htc_pipe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/htc_pipe.c b/drivers/net/wireless/ath/ath6kl/htc_pipe.c
index c68848819a52..9b88d96bfe96 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_pipe.c
+++ b/drivers/net/wireless/ath/ath6kl/htc_pipe.c
@@ -960,8 +960,8 @@ static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb,
 	 * Thus the possibility of ar->htc_target being NULL
 	 * via ath6kl_recv_complete -> ath6kl_usb_io_comp_work.
 	 */
-	if (WARN_ON_ONCE(!target)) {
-		ath6kl_err("Target not yet initialized\n");
+	if (!target) {
+		ath6kl_dbg(ATH6KL_DBG_HTC, "Target not yet initialized\n");
 		status = -EINVAL;
 		goto free_skb;
 	}
-- 
2.34.1


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

* Re: [PATCH] wifi: ath6kl: reduce WARN to dev_dbg() in callback
  2023-01-26 18:24 [PATCH] wifi: ath6kl: reduce WARN to dev_dbg() in callback Fedor Pchelkin
@ 2023-02-27 12:19 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2023-02-27 12:19 UTC (permalink / raw)
  To: Fedor Pchelkin
  Cc: Fedor Pchelkin, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Alexey Khoroshilov, Oliver Neukum,
	Mohammed Shafi Shajakhan, linux-wireless, netdev, linux-kernel,
	lvc-project, syzbot+555908813b2ea35dae9a

Fedor Pchelkin <pchelkin@ispras.ru> wrote:

> The warn is triggered on a known race condition, documented in the code above
> the test, that is correctly handled.  Using WARN() hinders automated testing.
> Reducing severity.
> 
> Fixes: de2070fc4aa7 ("ath6kl: Fix kernel panic on continuous driver load/unload")
> Reported-and-tested-by: syzbot+555908813b2ea35dae9a@syzkaller.appspotmail.com
> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

75c4a8154cb6 wifi: ath6kl: reduce WARN to dev_dbg() in callback

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20230126182431.867984-1-pchelkin@ispras.ru/

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


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

end of thread, other threads:[~2023-02-27 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 18:24 [PATCH] wifi: ath6kl: reduce WARN to dev_dbg() in callback Fedor Pchelkin
2023-02-27 12:19 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.