summaryrefslogtreecommitdiffstats
path: root/mm/cma.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-07 19:19:20 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-06-28 15:59:38 -0700
commitb97c0b521ae05d40e6541858600088a30f6dbe3a (patch)
tree09b7b457bf1287f84cf3965d985e37ba2843d759 /mm/cma.c
parent92924064106e410cdc015f1dbfc0499309f9f5b1 (diff)
downloadlinux-b97c0b521ae05d40e6541858600088a30f6dbe3a.tar.bz2
ixgbe: fix potential u32 overflow on shift
The u32 variable rem is being shifted using u32 arithmetic however it is being passed to div_u64 that expects the expression to be a u64. The 32 bit shift may potentially overflow, so cast rem to a u64 before shifting to avoid this. Also remove comment about overflow. Addresses-Coverity: ("Unintentional integer overflow") Fixes: cd4583206990 ("ixgbe: implement support for SDP/PPS output on X550 hardware") Fixes: 68d9676fc04e ("ixgbe: fix PTP SDP pin setup on X540 hardware") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'mm/cma.c')
0 files changed, 0 insertions, 0 deletions