]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Fix fault in case CONFIG_DM_TPM is set without any TPM
authorChristophe Ricard <christophe.ricard@gmail.com>
Thu, 21 Jan 2016 22:19:13 +0000 (23:19 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 29 Jan 2016 04:01:22 +0000 (21:01 -0700)
commit0e37d4c2c631b0e94b7e891a5b37650d9bbd143c
treea956c2811e69307134194cb04da0d074d8fcea2a
parent3faf2216d9649e2a22e6728194e9797cb46db933
tpm: Fix fault in case CONFIG_DM_TPM is set without any TPM

In case CONFIG_DM_TPM was set without any TPM chipset configured a fault
was generated (NULL pointer access).

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
cmd/tpm.c
lib/tpm.c