tpm/tpm_i2c_stm_st33: Add status check when reading data on the FIFO
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 13 Jan 2015 22:13:14 +0000 (23:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:59:43 +0000 (13:59 +0100)
commita1e7c4d07aed633b28608db4d268c4a4db1e4d33
tree5f0008a918bb5eeb92e9a3106da0ba826918e641
parent974fb1864df486455223d25bb3ec51af79ff4d6b
tpm/tpm_i2c_stm_st33: Add status check when reading data on the FIFO

commit c4eadfafb91d5501095c55ffadaa1168743f39d3 upstream.

Add a return value check when reading data from the FIFO register.

Reviewed-by: Jason Gunthorpe <jason.gunthorpe@obsidianresearch.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_i2c_stm_st33.c