commit | 4f59fce9e099fb6ba3c8361e5094163a3efce5be | [log] [tgz] |
---|---|---|
author | Bob Copeland <me@bobcopeland.com> | Wed Apr 07 23:55:59 2010 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Thu Apr 08 15:24:16 2010 -0400 |
tree | 72da69ffda22e548bc608d5a5bcd87b8220497d4 | |
parent | a05988bbbef5ac2391fe696646f0b80708f33f2e [diff] |
ath5k: add bounds check to pdadc table We check the bounds on pdadc once when correcting for negative curves but not when we later copy values from from the pdadc_tmp array, leading to a potential overrun. Although we shouldn't hit this case in practice, let's be consistent. Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Bob Copeland <me@bobcopeland.com> Acked-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>