linux/drivers/char/tpm
Christophe Ricard 1ba3b0b6f2 tpm/tpm_i2c_stm_st33: Fix potential bug in tpm_stm_i2c_send
When sending data in tpm_stm_i2c_send, each loop iteration send buf.
Send buf + i instead as the goal of this for loop is to send a number
of byte from buf that fit in burstcnt. Once those byte are sent, we are
supposed to send the next ones.

The driver was working because the burstcount value returns always the maximum size for a TPM
command or response. (0x800 for a command and 0x400 for a response).

Cc: stable@vger.kernel.org

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
2015-01-17 14:00:06 +01:00
..
Kconfig Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP 2014-04-07 16:36:11 -07:00
Makefile tpm: Move sysfs functions from tpm-interface to tpm-sysfs 2014-01-06 14:37:24 +01:00
tpm-dev.c tpm: Make tpm-dev allocate a per-file structure 2014-01-06 14:37:25 +01:00
tpm-interface.c TPM: Add new TPMs to the tail of the list to prevent inadvertent change of dev 2015-01-17 14:00:05 +01:00
tpm-sysfs.c tpm/tpm-sysfs: active_show() can be static 2014-01-06 14:37:25 +01:00
tpm.h tpm: Make tpm-dev allocate a per-file structure 2014-01-06 14:37:25 +01:00
tpm_acpi.c ACPI: Clean up acpi_os_map/unmap_memory() to eliminate __iomem. 2014-05-27 18:13:08 +02:00
tpm_atmel.c char: tpm: drop owner assignment from platform_drivers 2014-10-20 16:20:21 +02:00
tpm_atmel.h tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_eventlog.c tpm: simplify code by using %*phN specifier 2014-07-29 23:10:56 +02:00
tpm_eventlog.h drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_i2c_atmel.c char: tpm: Deletion of unnecessary checks before the function call "tpm_dev_vendor_release" 2015-01-17 14:00:06 +01:00
tpm_i2c_infineon.c drivers/char: delete non-required instances of include <linux/init.h> 2014-02-07 15:10:19 -08:00
tpm_i2c_nuvoton.c char: tpm: Deletion of unnecessary checks before the function call "tpm_dev_vendor_release" 2015-01-17 14:00:06 +01:00
tpm_i2c_stm_st33.c tpm/tpm_i2c_stm_st33: Fix potential bug in tpm_stm_i2c_send 2015-01-17 14:00:06 +01:00
tpm_i2c_stm_st33.h tpm_i2c_stm_st33: fix oops when i2c client is unavailable 2013-02-05 09:38:24 -06:00
tpm_ibmvtpm.c tpm: Fix NULL return in tpm_ibmvtpm_get_desired_dma 2015-01-17 14:00:06 +01:00
tpm_ibmvtpm.h drivers/char/tpm: remove tasklet and cleanup 2012-11-01 15:23:14 -05:00
tpm_infineon.c tpm: Create a tpm_class_ops structure and use it in the drivers 2014-01-06 14:37:25 +01:00
tpm_nsc.c char: tpm: drop owner assignment from platform_drivers 2014-10-20 16:20:21 +02:00
tpm_of.c drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_ppi.c ACPI / TPM: Fix resume regression on Chromebooks 2014-05-12 01:13:28 +02:00
tpm_tis.c tpm_tis: verify interrupt during init 2015-01-17 14:00:05 +01:00
xen-tpmfront.c xen: remove DEFINE_XENBUS_DRIVER() macro 2014-10-06 10:27:57 +01:00