-
Dan Carpenter authored
The "4 * be32_to_cpu(data->count)" multiplication can potentially overflow which would lead to memory corruption. Add a check for that. Cc: stable@vger.kernel.org Fixes: 745b361e ("tpm: infrastructure for TPM spaces") Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by:
Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by:
Jarkko Sakkinen <jarkko@kernel.org>
a0bcce2b