tools/libxc: report malloc errors in writev_exact

The caller of writev_exact should be notified about malloc errors
when dealing with partial writes.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
(cherry picked from commit 0d8d289af7)
This commit is contained in:
Olaf Hering authored and Ian Jackson committed 2020-11-09 17:48:16 +00:00
1 parent c64c15f8d4
commit e596bf77d8
1 file changed
+1
+1
View File
@@ -722,6 +722,7 @@ int writev_exact(int fd, const struct iovec *iov, int iovcnt)
if ( !local_iov )
{
saved_errno = ENOMEM;
rc = -1;
goto out;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.