mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-25 02:52:06 -06:00
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: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
3db34bf64a
commit
cc75a50c68
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue