• Andrew Morton's avatar
    [PATCH] Fix writev when a segment generates EFAULT · 7ce0fd51
    Andrew Morton authored
    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.
    7ce0fd51
filemap.c 45.5 KB