From 94b4a86aa6bdedf470e639fcfd8d6d8f3b3b2905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81yszczek?= Date: Fri, 20 Apr 2018 17:05:42 -0600 Subject: [PATCH] fs/vfs: Fix negative errno set in fs_open.c --- fs/vfs/fs_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/vfs/fs_open.c b/fs/vfs/fs_open.c index 04b0d4b13d..e5e43bff19 100644 --- a/fs/vfs/fs_open.c +++ b/fs/vfs/fs_open.c @@ -1,7 +1,7 @@ /**************************************************************************** * fs/vfs/fs_open.c * - * Copyright (C) 2007-2009, 2011-2012, 2016-2017 Gregory Nutt. All rights + * Copyright (C) 2007-2009, 2011-2012, 2016-2018 Gregory Nutt. All rights * reserved. * Author: Gregory Nutt * @@ -169,7 +169,7 @@ int open(const char *path, int oflags, ...) fd = block_proxy(path, oflags); if (fd < 0) { - ret = fd; + ret = -fd; goto errout_with_search; }