ath9k_hw: Fix divide by zero cases in paprd.
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Tue, 19 Oct 2010 14:31:41 +0000 (20:01 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:14 +0000 (14:43 -0400)
commit2d3fca180710c6832de22c44155ce6a3a4953c6b
tree00f2b5f961776177638b27d449c83c89b34323d8
parent0dfa6dbb7372e581d3beb38b11772152114796b8
ath9k_hw: Fix divide by zero cases in paprd.

We are not handling all divide by zero cases in paprd.
Add additional checks for divide by zero cases in papard.

This patch has fixes intended for kernel 2.6.36.

Cc: stable@kernel.org
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_paprd.c