Преглед на файлове

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 години
родител
ревизия
55b0389911
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);