diff options
| author | Bruce Allan <[email protected]> | 2019-02-08 20:50:35 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-02-25 16:56:01 +0000 |
| commit | 32a64994dbc3e79250f99802faddc074fa8ce667 (patch) | |
| tree | 159f3e8ad1e3a04d2f5efe739e73fa7762bdc73e /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | ice: fix issue where host reboots on unload when iommu=on (diff) | |
| download | kernel-32a64994dbc3e79250f99802faddc074fa8ce667.tar.gz kernel-32a64994dbc3e79250f99802faddc074fa8ce667.zip | |
ice: fix numeric overflow warning
When compiling and analyzing the driver on newer kernels, a static
analyzer warns about the following "numeric overflow" issues:
"The result of expression: 'budget-1' generates 4-byte type while casting
to a bigger size of 8-byte".
"The result of expression: '*words-words_read' generates 4-byte type
while casting to a bigger size of 8-byte".
Fix them both.
Signed-off-by: Bruce Allan <[email protected]>
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
