From ffd37a01753526978330199b8412dcf28b02dca6 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 25 Jan 2019 06:23:34 -0600 Subject: [PATCH] fs/vfs/fs_open.c: Fix not returning failure for block_proxy() call. --- fs/vfs/fs_open.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/vfs/fs_open.c b/fs/vfs/fs_open.c index 9f61b21d61..c28777bbf0 100644 --- a/fs/vfs/fs_open.c +++ b/fs/vfs/fs_open.c @@ -168,6 +168,7 @@ int nx_vopen(FAR const char *path, int oflags, va_list ap) fd = block_proxy(path, oflags); if (fd < 0) { + ret = fd; goto errout_with_search; }