summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@collabora.com>2017-04-13 10:30:26 -0400
committerRobert Foss <robert.foss@collabora.com>2017-04-13 10:30:26 -0400
commite5f267c15cbc27c759df80d940644c1bfe177222 (patch)
tree8381b51191638b86a8e435c3f503e0b0b339354d
parent65851ca8acbfd8bad2795471f8386e8fcdfd8616 (diff)
downloadlinux-imx-next.tar.gz
linux-imx-next.tar.xz
HACK: Avoid fd's being 0imx-next
Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file.c b/fs/file.c
index ad6f094..11d6b97 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -559,7 +559,7 @@ static int alloc_fd(unsigned start, unsigned flags)
int get_unused_fd_flags(unsigned flags)
{
- return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags);
+ return __alloc_fd(current->files, 1, rlimit(RLIMIT_NOFILE), flags);
}
EXPORT_SYMBOL(get_unused_fd_flags);