@@ -1449,6 +1449,8 @@
err = copy_from_user(kaddr+from, buf, to-from);
if (to < zeroto)
memset(kaddr+to, 0, zeroto-to);
+ else
+ zeroto = to;
if (err < 0)
goto out;
/*
Explanation: zeroto is left 0 if there is no new buffers partially written
within a page. In that case it fails to dirty any buffer - with obvious
results. Fixed variant (that's what was posted for testing on l-k) didn't
bring any bug reports so far. Ouch...
Al
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/