diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-05-19 23:37:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:32 -0400 |
commit | 9c8b3eddc0666255851942df8ec72cd91d22f280 (patch) | |
tree | beef68ff428b4414073142b34910010411b6aaac /net/wireless | |
parent | 61405e97788b1bc4e7c5be5b4ec04a73fc11bac2 (diff) | |
download | blackbird-op-linux-9c8b3eddc0666255851942df8ec72cd91d22f280.tar.gz blackbird-op-linux-9c8b3eddc0666255851942df8ec72cd91d22f280.zip |
ath5k: avoid and warn on potential infinite loop
If we are trying to interpolate a curve with slope == 0, the return
value will always be the y-coordinate. In this code we are looping
until we reach a minimum y-coordinate on a line, which in the 0-slope
case can never happen, thus the loop never terminates.
The PCDAC steps come from the EEPROM and should never be equal, but
we should gracefully handle that case, so warn and bail out.
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions