diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2019-05-14 10:37:00 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-06-17 15:39:25 -0700 |
commit | 168d91cf2a90a809502b665fff6b4c66579e8f0a (patch) | |
tree | b4c0ad5031fa5a6c36e16d976315f488d9c31fee /drivers/fsi/cf-fsi-fw.h | |
parent | c2417a7b0e3c0bb173067bc06e6ba08c3138b5b1 (diff) | |
download | linux-168d91cf2a90a809502b665fff6b4c66579e8f0a.tar.bz2 |
iavf: use signed variable
The counter variable in iavf_clean_tx_irq starts out negative and climbs
to 0. So allocating it as u16 is actually a really bad idea that just
happens to work because the value underflows and overflows consistently
on most architectures.
Replace the u16 with an int so signed math works as expected.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/fsi/cf-fsi-fw.h')
0 files changed, 0 insertions, 0 deletions