mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton: "87 patches. Subsystems affected by this patch series: mm (pagecache and hugetlb), procfs, misc, MAINTAINERS, lib, checkpatch, binfmt, kallsyms, ramfs, init, codafs, nilfs2, hfs, crash_dump, signals, seq_file, fork, sysvfs, kcov, gdb, resource, selftests, and ipc" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (87 commits) ipc/ipc_sysctl.c: remove fallback for !CONFIG_PROC_SYSCTL ipc: check checkpoint_restore_ns_capable() to modify C/R proc files selftests/kselftest/runner/run_one(): allow running non-executable files virtio-mem: disallow mapping virtio-mem memory via /dev/mem kernel/resource: disallow access to exclusive system RAM regions kernel/resource: clean up and optimize iomem_is_exclusive() scripts/gdb: handle split debug for vmlinux kcov: replace local_irq_save() with a local_lock_t kcov: avoid enable+disable interrupts if !in_task() kcov: allocate per-CPU memory on the relevant node Documentation/kcov: define `ip' in the example Documentation/kcov: include types.h in the example sysv: use BUILD_BUG_ON instead of runtime check kernel/fork.c: unshare(): use swap() to make code cleaner seq_file: fix passing wrong private data seq_file: move seq_escape() to a header signal: remove duplicate include in signal.h crash_dump: remove duplicate include in crash_dump.h crash_dump: fix boolreturn.cocci warning hfs/hfsplus: use WARN_ON for sanity check ...
This commit is contained in:
@@ -3024,7 +3024,7 @@ int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
|
||||
int ksys_unshare(unsigned long unshare_flags)
|
||||
{
|
||||
struct fs_struct *fs, *new_fs = NULL;
|
||||
struct files_struct *fd, *new_fd = NULL;
|
||||
struct files_struct *new_fd = NULL;
|
||||
struct cred *new_cred = NULL;
|
||||
struct nsproxy *new_nsproxy = NULL;
|
||||
int do_sysvsem = 0;
|
||||
@@ -3111,11 +3111,8 @@ int ksys_unshare(unsigned long unshare_flags)
|
||||
spin_unlock(&fs->lock);
|
||||
}
|
||||
|
||||
if (new_fd) {
|
||||
fd = current->files;
|
||||
current->files = new_fd;
|
||||
new_fd = fd;
|
||||
}
|
||||
if (new_fd)
|
||||
swap(current->files, new_fd);
|
||||
|
||||
task_unlock(current);
|
||||
|
||||
|
Reference in New Issue
Block a user