]> git.baikalelectronics.ru Git - kernel.git/commit
kernel: avoid overflow in cmp_range
authorLouis Langholtz <lou_langholtz@me.com>
Fri, 16 Jan 2015 05:04:46 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2015 21:02:23 +0000 (10:02 +1300)
commitcdffa0579965f5984fa1b394e51cf1b569a2890d
tree704eb796bfcdf42f5d04a48fabc2ffd24c824be0
parent0717b115346a78a8c40c72f62ee0399c96c759ca
kernel: avoid overflow in cmp_range

Avoid overflow possibility.

[ The overflow is purely theoretical, since this is used for memory
  ranges that aren't even close to using the full 64 bits, but this is
  the right thing to do regardless.  - Linus ]

Signed-off-by: Louis Langholtz <lou_langholtz@me.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Peter Anvin <hpa@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/range.c