aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2020-01-17 15:48:39 +0000
committerWill Deacon <will@kernel.org>2020-01-17 16:05:50 +0000
commitc2c24edb1d9c308011f5a1328563d8da8c92c849 (patch)
tree2b2438f62417db3238cb88b111fe24120fab8880 /arch/arm64/Kconfig
parentarm64: Implement optimised checksum routine (diff)
downloadlinux-dev-c2c24edb1d9c308011f5a1328563d8da8c92c849.tar.xz
linux-dev-c2c24edb1d9c308011f5a1328563d8da8c92c849.zip
arm64: csum: Fix pathological zero-length calls
In validating the checksumming results of the new routine, I sadly neglected to test its not-checksumming results. Thus it slipped through that the one case where @buff is already dword-aligned and @len = 0 manages to defeat the tail-masking logic and behave as if @len = 8. For a zero length it doesn't make much sense to deference @buff anyway, so just add an early return (which has essentially zero impact on performance). Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/Kconfig')
0 files changed, 0 insertions, 0 deletions