drivers/tpm/tpm_tis_sandbox.c: Fix uninitialized variable use
authorTom Rini <trini@konsulko.com>
Tue, 12 Apr 2016 19:11:22 +0000 (15:11 -0400)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Apr 2016 14:14:37 +0000 (08:14 -0600)
commit7e019daf7ab9dca3bf782d6de866b36d44ede95e
tree4af49ad4fc2afdb4ddc9a013476251aee443a9e0
parent43c4d44e3330fd21679c0790fa2176075d0e69bf
drivers/tpm/tpm_tis_sandbox.c: Fix uninitialized variable use

In rollback_space_kernel we were not initializing the reserved fields
which should be for safety sake, and doing memset here means we don't
need to set the version field specifically either.

Reported-by: Coverity (CID: 143917)
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/tpm/tpm_tis_sandbox.c