tpm: Fix write to file descriptor function
commite7658fcc4c29a29c578acde26f7714023b93b46e
authorStefan Berger <stefanb@us.ibm.com>
Wed, 6 Apr 2016 00:21:50 +0000 (5 20:21 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Apr 2016 16:52:34 +0000 (13 19:52 +0300)
treee20427db0e2c497336f338a4773740413d43c588
parent52e38eb0512585a5fadb431a65997b602d44874b
tpm: Fix write to file descriptor function

Fix a bug introduced in commit 46f296c while moving send_all to the
tpm_passthrough code. Fix the name of the variable used in the loop.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/tpm/tpm_passthrough.c