VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Anatol Pomozov <anatol.pomozov@gmail.com> 2012-09-12 20:11:55 -0700 committer: Al Viro <viro@zeniv.linux.org.uk> 2013-02-22 23:31:32 -0500 commit: 39b652527457452f09b35044fb4f8b3b0eabafdf parent: 1afc99beaf0fca3767d9b67789a7ae91c4f7a9c9
Commit Summary:
fs: Preserve error code in get_empty_filp(), part 2
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/file_table.c b/fs/file_table.c
index cd76d4fdf4a4..aa07d3684a2e 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -173,7 +173,7 @@ struct file *alloc_file(struct path *path, fmode_t mode,
 
 	file = get_empty_filp();
 	if (IS_ERR(file))
-		return NULL;
+		return file;
 
 	file->f_path = *path;
 	file->f_mapping = path->dentry->d_inode->i_mapping;