• Rajiv Andrade's avatar
    TPM: fix transmit_cmd error logic · b9e3238a
    Rajiv Andrade authored
    It's incorrect to assume that buffers returned by the TPM
    10 bytes long are always error reports. This patches
    parses the error field in its header instead. The error report
    is now being printed using dev_err() instead of dev_dbg(), making
    it easier for users to provide more detailed bug reports.
    Signed-off-by: default avatarRajiv Andrade <srajiv@linux.vnet.ibm.com>
    b9e3238a
tpm_tis.c 22.1 KB