commit | e49f913750bb8745085cc4c547912c330cd3eacb | [log] [tgz] |
---|---|---|
author | Felix Fietkau <nbd@openwrt.org> | Tue Oct 12 16:08:01 2010 +0200 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Oct 15 15:48:44 2010 -0400 |
tree | 989230a1b47ada33ad2c0e8407456e2ec354f667 | |
parent | 898c914a0871ea7e5557b77156d4358c0f15d98a [diff] |
ath9k_hw: fix division by zero in the ANI monitor code The commit "ath9k_hw: remove code duplication in phy error counter handling" split off some duplicate code into a separate function, but did not have a return code for aborting ANI processing based on counter values. This introduced a divide by zero issue. This patch adds the missing return code check in ath9k_hw_ani_monitor Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>