TPM: fix transmit_cmd error logic
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Tue, 1 Nov 2011 19:00:52 +0000 (17:00 -0200)
committerRajiv Andrade <srajiv@linux.vnet.ibm.com>
Wed, 16 Nov 2011 11:57:11 +0000 (09:57 -0200)
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: Rajiv Andrade <srajiv@linux.vnet.ibm.com>

No differences found