aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorManuel Lauss <manuel.lauss@gmail.com>2017-06-19 08:27:17 +0200
committerJames Morris <james.l.morris@oracle.com>2017-07-07 09:49:25 +1000
commitf128480f39166c0a4475b6937e7e3e148b1caecc (patch)
treea7595923697af1ebe69de071052689102ffb59bb /tools
parent13b47cfcfc60495cde216eef4c01040d76174cbe (diff)
tpm/tpm_crb: fix priv->cmd_size initialisation
priv->cmd_size is never initialised if the cmd and rsp buffers reside at different addresses. Initialise it in the exit path of the function when rsp buffer has also been successfully allocated. Fixes: aa77ea0e43dc ("tpm/tpm_crb: cache cmd_size register value."). Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions