linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwritev

MFC after:		1 month
This commit is contained in:
Dmitry Chagin 2023-08-20 10:36:31 +03:00
parent 4231b825ac
commit dfbb3e2aae

View File

@ -1065,7 +1065,7 @@ linux_pwritev(struct thread *td, struct linux_pwritev_args *uap)
return (error);
error = kern_pwritev(td, uap->fd, auio, offset);
free(auio, M_IOV);
return (error);
return (linux_enobufs2eagain(td, uap->fd, error));
}
int