>From 8ff7eb66e1dc05daf1319bf8365e5a3434a90061 Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Thu, 31 Jan 2019 20:16:00 +0200 Subject: [PATCH] tpm/tpm_crb: Revert to memcpy() for copying tail of the response Revert the behavior before 170d13ca3a2f. Signed-off-by: Jarkko Sakkinen --- 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