提交 cc75a50c 编写于 作者: D Daniel P. Berrange

io: fix sign of errno value passed to error report

When reporting the number of FDs has been exceeded, pass
EINVAL to error_setg_errno, rather than -EINVAL.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 3db34bf6
......@@ -502,7 +502,7 @@ static ssize_t qio_channel_socket_writev(QIOChannel *ioc,
if (nfds) {
if (nfds > SOCKET_MAX_FDS) {
error_setg_errno(errp, -EINVAL,
error_setg_errno(errp, EINVAL,
"Only %d FDs can be sent, got %zu",
SOCKET_MAX_FDS, nfds);
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册