diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-15 10:45:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-16 05:27:58 +0200 |
commit | 2540ddb5124f883bba3d4af5d8920d44dd66e794 (patch) | |
tree | 4063da161125c5475bcc15c88b1401c967a04e05 /virt | |
parent | drivers: irda: fix sign bug (diff) | |
download | linux-2540ddb5124f883bba3d4af5d8920d44dd66e794.tar.xz linux-2540ddb5124f883bba3d4af5d8920d44dd66e794.zip |
drivers: ixgbevf: fix unsigned underflow
'count' is unsigned. It is initialized to zero, then it can be increased
multiple times, and finally it is used in such a way:
>>>> count--;
|
| /* clear timestamp and dma mappings for remaining portion of packet */
| while (count >= 0) {
| count--;
| ...
^
If count is zero here (so, it was never increased), we would have a very
long loop :)
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions