|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging-4.13] tools/libxc: report malloc errors in writev_exact
commit e596bf77d8d3c13d5c0db20d97aa1e1846add8a7
Author: Olaf Hering <olaf@xxxxxxxxx>
AuthorDate: Wed Sep 23 08:48:40 2020 +0200
Commit: Ian Jackson <iwj@xxxxxxxxxxxxxx>
CommitDate: Mon Nov 9 17:48:16 2020 +0000
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@xxxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Wei Liu <wl@xxxxxxx>
(cherry picked from commit 0d8d289af7a679c028462c4ed5d98586f9ef9648)
---
tools/libxc/xc_private.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c
index 90974d572e..13a2c723c1 100644
--- a/tools/libxc/xc_private.c
+++ b/tools/libxc/xc_private.c
@@ -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;
}
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.13
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |