[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v3 3/5] lib/vfscore: check return value of vfs_write in sys_write
This check has been lost during the porting. Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> Reviewed-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> --- lib/vfscore/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vfscore/syscalls.c b/lib/vfscore/syscalls.c index 1301f351..385d90c0 100644 --- a/lib/vfscore/syscalls.c +++ b/lib/vfscore/syscalls.c @@ -330,7 +330,7 @@ sys_write(struct vfscore_file *fp, const struct iovec *iov, size_t niov, uio.uio_offset = offset; uio.uio_resid = bytes; uio.uio_rw = UIO_WRITE; - vfs_write(fp, &uio, (offset == -1) ? 0 : FOF_OFFSET); + error = vfs_write(fp, &uio, (offset == -1) ? 0 : FOF_OFFSET); *count = bytes - uio.uio_resid; free(copy_iov); -- 2.19.2 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |