linux-6.14/arch/arm64/lib/crc-t10dif-glue.c bug report
From: David Binderman
Date: Wed Mar 26 2025 - 15:13:12 EST
Hello there,
Static analyser cppcheck says:
linux-6.14/arch/arm64/lib/crc-t10dif-glue.c:53:33: error: Using pointer to local variable 'buf' that is out of scope. [invalidLifetime]
Source code is
return crc_t10dif_generic(crc, data, length);
but this line
data = buf;
looks very suspicious. Suggest move local variable buf out
to file scope.
Regards
David Binderman