qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] tpm: Fix write to file descri


From: Stefan Berger
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] tpm: Fix write to file descriptor function
Date: Sat, 9 Apr 2016 14:08:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

On 04/05/2016 08:21 PM, Stefan Berger wrote:
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.

Would someone please pick up this fix?

Signed-off-by: Stefan Berger <address@hidden>
---
  hw/tpm/tpm_passthrough.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/tpm/tpm_passthrough.c b/hw/tpm/tpm_passthrough.c
index e98efb7..e88c0d2 100644
--- a/hw/tpm/tpm_passthrough.c
+++ b/hw/tpm/tpm_passthrough.c
@@ -86,7 +86,7 @@ static int tpm_passthrough_unix_write(int fd, const uint8_t 
*buf, uint32_t len)
      int ret, remain;

      remain = len;
-    while (len > 0) {
+    while (remain > 0) {
          ret = write(fd, buf, remain);
          if (ret < 0) {
              if (errno != EINTR && errno != EAGAIN) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]