commit | 1afc99beaf0fca3767d9b67789a7ae91c4f7a9c9 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Feb 14 20:41:04 2013 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Fri Feb 22 23:31:32 2013 -0500 |
tree | 9aba84bc2d8e4873859bd81ddf1002fe0e3f9376 | |
parent | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 [diff] [blame] |
propagate error from get_empty_filp() to its callers Based on parts from Anatol's patch (the rest is the next commit). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/namei.c b/fs/namei.c index df00b75..e0a33f5 100644 --- a/fs/namei.c +++ b/fs/namei.c
@@ -2941,8 +2941,8 @@ int error; file = get_empty_filp(); - if (!file) - return ERR_PTR(-ENFILE); + if (IS_ERR(file)) + return file; file->f_flags = op->open_flag;