tools/libxc: report malloc errors in writev_exact
PATCH 1/1 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 <[email protected]>
---
I think this is a backport candidate...
tools/libs/ctrl/xc_private.c | 1 + 1 file changed, 1 insertion(+)
tools/libs/ctrl/xc_private.c +1 -0
@@ -721,6 +721,7 @@ int writev_exact(int fd, const struct iovec *iov, int iovcnt)if ( !local_iov ) { saved_errno =ENOMEM ; + rc =-1 ; goto out; }
Quoted 4 lines · Olaf Hering
The caller of
writev_exactshould be notified about malloc errors when dealing with partial writes.Signed-off-by Olaf Hering <[email protected]>
Reviewed-by Andrew Cooper <[email protected]>
Quoted 7 lines · Andrew Cooper
Quoted 4 lines · Olaf Hering
The caller of
writev_exactshould be notified about malloc errors when dealing with partial writes.Signed-off-by Olaf Hering <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
Acked + applied.