diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-18 14:13:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-18 14:13:48 -0500 |
commit | 8d938105e432fe0e9f5163147e9c113190bd9d32 (patch) | |
tree | 0151223bf265cab6143c5a972c7deaa85c7507b1 /fs/file.c | |
parent | aa7202c25143e76be04d9a3ed3896d38f548c29c (diff) | |
parent | 5a8477660d9ddc090203736d7271137265cb25bb (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc VFS fixes from Al Viro:
"Remove a bogus BUG_ON() that can trigger spuriously + alpha bits of
do_mount() constification I'd missed during the merge window."
This pull request came in a week ago, I missed it for some reason.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
kill bogus BUG_ON() in do_close_on_exec()
missing const in alpha callers of do_mount()
Diffstat (limited to 'fs/file.c')
-rw-r--r-- | fs/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -685,7 +685,6 @@ void do_close_on_exec(struct files_struct *files) | |||
685 | struct fdtable *fdt; | 685 | struct fdtable *fdt; |
686 | 686 | ||
687 | /* exec unshares first */ | 687 | /* exec unshares first */ |
688 | BUG_ON(atomic_read(&files->count) != 1); | ||
689 | spin_lock(&files->file_lock); | 688 | spin_lock(&files->file_lock); |
690 | for (i = 0; ; i++) { | 689 | for (i = 0; ; i++) { |
691 | unsigned long set; | 690 | unsigned long set; |