commit | 3f5572020c4829e749716f2c31b5107417d5a96d | [log] [tgz] |
---|---|---|
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | Thu Jul 17 16:56:37 2014 +0300 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Jul 18 13:45:25 2014 -0400 |
tree | c692198b2b7689f87d0e63d5336807e6f2ae09e9 | |
parent | 3ae351abf15f984c02feb9aab5394443e9efb00a [diff] [blame] |
ath9k: drop negativity checks for unsigned values coming from kstrtoul() Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80471 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80481 Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index ce073e9..d227936 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -202,7 +202,7 @@ if (kstrtoul(buf, 0, &ani)) return -EINVAL; - if (ani < 0 || ani > 1) + if (ani > 1) return -EINVAL; common->disable_ani = !ani;