ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
This commit is contained in:
parent
cf01b78f83
commit
d47884a9de
29
ath9k-use-WARN_ON_ONCE-in-ath_rc_get_highest_rix.patch
Normal file
29
ath9k-use-WARN_ON_ONCE-in-ath_rc_get_highest_rix.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 41b2d62702730b0c6bc5a40722e423bb0338311a Mon Sep 17 00:00:00 2001
|
||||
From: John W. Linville <linville@tuxdriver.com>
|
||||
Date: Mon, 30 Jan 2012 10:53:55 -0500
|
||||
Subject: [PATCH] ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
|
||||
|
||||
The device seems to survive the issue, so no need to flood the logs
|
||||
about it...
|
||||
|
||||
Signed-off-by: John W. Linville <linville@tuxdriver.com>
|
||||
---
|
||||
drivers/net/wireless/ath/ath9k/rc.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
|
||||
index b3c3798..635b592 100644
|
||||
--- a/drivers/net/wireless/ath/ath9k/rc.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/rc.c
|
||||
@@ -694,7 +694,7 @@ static u8 ath_rc_get_highest_rix(struct ath_softc *sc,
|
||||
return rate;
|
||||
|
||||
/* This should not happen */
|
||||
- WARN_ON(1);
|
||||
+ WARN_ON_ONCE(1);
|
||||
|
||||
rate = ath_rc_priv->valid_rate_index[0];
|
||||
|
||||
--
|
||||
1.7.4.4
|
||||
|
@ -749,6 +749,7 @@ Patch50003: compat-wireless-use-kconfig_h.patch
|
||||
Patch50004: compat-move-br_port_exists-to-compat-2_6_36_h.patch
|
||||
Patch50005: compat-wireless-fix-some-config-options.patch
|
||||
|
||||
Patch50100: ath9k-use-WARN_ON_ONCE-in-ath_rc_get_highest_rix.patch
|
||||
|
||||
%endif
|
||||
|
||||
@ -1503,6 +1504,8 @@ ApplyPatch compat-wireless-use-kconfig_h.patch
|
||||
ApplyPatch compat-move-br_port_exists-to-compat-2_6_36_h.patch
|
||||
ApplyPatch compat-wireless-fix-some-config-options.patch
|
||||
|
||||
ApplyPatch ath9k-use-WARN_ON_ONCE-in-ath_rc_get_highest_rix.patch
|
||||
|
||||
cd ..
|
||||
|
||||
%endif
|
||||
@ -2278,6 +2281,9 @@ fi
|
||||
# ||----w |
|
||||
# || ||
|
||||
%changelog
|
||||
* Mon Jan 30 2012 John W. Linville <linville@redhat.com>
|
||||
- ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
|
||||
|
||||
* Sun Jan 29 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git5.1
|
||||
- Linux 3.3-rc1-git5 (upstream 0a9626575400879d1d5e6bc8768188b938d7c501)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user