diff --git a/fs/vfs/fs_poll.c b/fs/vfs/fs_poll.c index f4219aa7c39..267a542da52 100644 --- a/fs/vfs/fs_poll.c +++ b/fs/vfs/fs_poll.c @@ -393,7 +393,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout) { /* Out of memory */ - ret = ENOMEM; + ret = -ENOMEM; goto out_with_cancelpt; }