]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita944c37c54a88240e7d19e3be9343d0078b4071b
tree1a6934ccab50502ae4c6a3604699c5d8b458d1df
parent013f9b04b51ee906706be3039eed998eb2eb17af
vfs: clear remainder of 'full_fds_bits' in dup_fd()

This fixes a bug from commit 380eeb1f2649 ("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