commit | d9739a26fbcaa11c026dd79bc310af96003f20d8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue May 10 22:21:17 2016 +0300 |
committer | Kalle Valo <kvalo@codeaurora.org> | Wed May 11 22:02:20 2016 +0300 |
tree | 115bc6a901896eae3e846dfd3728c032d2956992 | |
parent | 03ba4a1b718e3a018f38f1ee030de4cd052bb3f3 [diff] |
atmel: potential underflow in atmel_set_freq() Smatch complains that we cap the upper bound of "fwrq->m" but not the lower bound. I don't know if it can actually happen but it's simple enough to check for negatives. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>