summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-01-05 10:18:52 +0100
committerDmitry Shmidt <dimitrysh@google.com>2016-05-31 13:26:37 -0700
commitd8853fd2e900115923bb36a9137d6b3f1095ee70 (patch)
tree4d59ae4371534ae3236304d9c726d75cc85cbcbe /include/linux
parentef55b4532be92094b0a1f03f2e1a50d4b49a30ae (diff)
UPSTREAM: arm64: module: avoid undefined shift behavior in reloc_data()
Compilers may engage the improbability drive when encountering shifts by a distance that is a multiple of the size of the operand type. Since the required bounds check is very simple here, we can get rid of all the fuzzy masking, shifting and comparing, and use the documented bounds directly. Change-Id: Ibc1b73f4a630bc182deb6edfa7458b5e29ba9577 Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions