aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2019-02-08 12:50:35 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-02-25 08:56:01 -0800
commit32a64994dbc3e79250f99802faddc074fa8ce667 (patch)
tree159f3e8ad1e3a04d2f5efe739e73fa7762bdc73e /samples
parentice: fix issue where host reboots on unload when iommu=on (diff)
downloadlinux-dev-32a64994dbc3e79250f99802faddc074fa8ce667.tar.xz
linux-dev-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 <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions