From: Felix Fietkau Date: Tue, 12 Oct 2010 14:08:01 +0000 (+0200) Subject: ath9k_hw: fix division by zero in the ANI monitor code X-Git-Tag: v2.6.37-rc1~147^2~78^2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49f913750bb8745085cc4c547912c330cd3eacb;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed