summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authorMitch Williams2019-05-14 19:37:00 +0200
committerJeff Kirsher2019-06-18 00:39:25 +0200
commit168d91cf2a90a809502b665fff6b4c66579e8f0a (patch)
treeb4c0ad5031fa5a6c36e16d976315f488d9c31fee /drivers/net/ifb.c
parentiavf: Create VLAN tag elements starting from the first element (diff)
downloadkernel-qcow2-linux-168d91cf2a90a809502b665fff6b4c66579e8f0a.tar.gz
kernel-qcow2-linux-168d91cf2a90a809502b665fff6b4c66579e8f0a.tar.xz
kernel-qcow2-linux-168d91cf2a90a809502b665fff6b4c66579e8f0a.zip
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/net/ifb.c')
0 files changed, 0 insertions, 0 deletions