ntfs_attr_pwrite: fix potential corruption and crash after partial write

This commit is contained in:
szaka 2009-03-30 11:02:24 +00:00
parent cb1b5b67db
commit fd8e63faa3

View File

@ -1390,8 +1390,9 @@ retry:
total += written;
count -= written;
b = (const u8*)b + written;
continue;
}
if (written == to_write)
continue;
/* If the syscall was interrupted, try again. */
if (written == (s64)-1 && errno == EINTR)
goto retry;