Home
last modified time | relevance | path

Searched hist:c2c24edb1d9c308011f5a1328563d8da8c92c849 (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm64/lib/
H A Dcsum.cdiff c2c24edb1d9c308011f5a1328563d8da8c92c849 Fri Jan 17 16:48:39 CET 2020 Robin Murphy <robin.murphy@arm.com> 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>