Browse Source

Correct a bug in which all valid interrupted write operations were being erroneously tossed (== instead of !=)

git-svn-id: http://svn.xiph.org/trunk/fusd@12350 0101bb08-14d6-0310-b084-bc0e0c8e3800
xiphmont 17 years ago
parent
commit
55b0389911
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kfusd/kfusd.c

+ 1 - 1
kfusd/kfusd.c

@@ -1368,7 +1368,7 @@ STATIC ssize_t fusd_client_write(struct file *file,
 	 NAME(fusd_dev), fusd_dev->pid, current->pid);
 
   transaction = fusd_find_incomplete_transaction(fusd_file, FUSD_WRITE);
-  if (transaction && transaction->size == length)
+  if (transaction && transaction->size != length)
   {
     RDEBUG(2, "Incomplete I/O transaction %ld thrown out, as the transaction's size of %d bytes was not equal to "
               "the retry's size of %d bytes", transaction->transid, transaction->size, (int) length);