linux-6.14/arch/arm64/lib/crc-t10dif-glue.c bug report

David Binderman dcb314 at hotmail.com
Wed Mar 26 12:12:00 PDT 2025


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



More information about the linux-arm-kernel mailing list