Skip to content

Commit 3371f56

Browse files
committed
arm/crc-t10dif: fix use of out-of-scope array in crc_t10dif_arch()
Fix a silly bug where an array was used outside of its scope. Fixes: 1684e82 ("arm/crc-t10dif: expose CRC-T10DIF function through lib") Cc: stable@vger.kernel.org Reported-by: David Binderman <dcb314@hotmail.com> Closes: https://lore.kernel.org/r/AS8PR02MB102170568EAE7FFDF93C8D1ED9CA62@AS8PR02MB10217.eurprd02.prod.outlook.com Link: https://lore.kernel.org/r/20250326200812.125574-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
1 parent 1e26c5e commit 3371f56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/arm/lib/crc-t10dif-glue.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ u16 crc_t10dif_arch(u16 crc, const u8 *data, size_t length)
4444
crc_t10dif_pmull8(crc, data, length, buf);
4545
kernel_neon_end();
4646

47-
crc = 0;
48-
data = buf;
49-
length = sizeof(buf);
47+
return crc_t10dif_generic(0, buf, sizeof(buf));
5048
}
5149
}
5250
return crc_t10dif_generic(crc, data, length);

0 commit comments

Comments
 (0)