[PATCH] tpm/tpm_crb: Revert to memcpy() for copying tail of the response

From: Jarkko Sakkinen
Date: Thu Jan 31 2019 - 13:16:00 EST


Revert the behavior before 170d13ca3a2f.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
---
drivers/char/tpm/tpm_crb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm_crb.c b/drivers/char/tpm/tpm_crb.c
index 36952ef98f90..003923ea50d2 100644
--- a/drivers/char/tpm/tpm_crb.c
+++ b/drivers/char/tpm/tpm_crb.c
@@ -299,7 +299,7 @@ static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count)
if (expected > count || expected < 6)
return -EIO;

- memcpy_fromio(&buf[6], &priv->rsp[6], expected - 6);
+ memcpy(&buf[6], &priv->rsp[6], expected - 6);

return expected;
}
--
2.19.1


--YiEDa0DAkWCtVeE4--