vfs: clear remainder of 'full_fds_bits' in dup_fd()
authorEric Biggers <ebiggers3@gmail.com>
Fri, 6 Nov 2015 06:32:04 +0000 (00:32 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 07:05:32 +0000 (23:05 -0800)
commitea5c58e70c3a148ada0d3061a8f529589bb766ba
tree1a6934ccab50502ae4c6a3604699c5d8b458d1df
parent2c302e7e41050dbc174d50b58ad42eedf5dbd6fa
vfs: clear remainder of 'full_fds_bits' in dup_fd()

This fixes a bug from commit f3f86e33dc3d ("vfs: Fix pathological
performance case for __alloc_fd()").

v2: refactor to share fd bitmap copying code
Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/file.c