[PATCH] Fix writev when a segment generates EFAULT
From: Martin Schwidefsky <schwidefsky@de.ibm.com> If writev() is passed a vector in which the second or later segment generates a fault it will currently return -EFAULT. It shouldn't. It should write what it can and return the number of bytes which were successfully copied. Fix that up by writing the partial result and then returning the right value.
Showing
Please register or sign in to comment