security/tpm: Report tpm_unmarshal_response warning

In procedure tpm_unmarshal_response(), variable "rc" is used early to
decide if it should return NULL. Later however, the code proceeds to its
end even if one subroutine reports error. If "rc" is not 0, report that
there was a partial error in the procedure.

TEST=Build and boot grunt.

Change-Id: I7575bc75104fd97f138224aa57561e68f6548e58
Signed-off-by: Richard Spiegel <>
Reviewed-by: Martin Roth <>
Reviewed-by: Marshall Dawson <>
Reviewed-by: Philipp Deppenwiese <>
Tested-by: build bot (Jenkins) <>
1 file changed