Linux kernel source tree
Go to file
Joel Savitz 5caa2d89b7
kernel/nsproxy: remove unnecessary guards
In free_nsproxy() and the error path of create_new_namesapces() the
put_*_ns() calls are guarded by unnecessary NULL checks.

put_pid_ns(), put_ipc_ns(), put_uts_ns(), and put_time_ns() will never
receive a NULL argument unless their namespace type is disabled, and in
this case all four become no-ops at compile time anyway. put_mnt_ns()
will never receive a null argument at any time.

This unguarded usage is in line with other call sites of put_*_ns().

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
Link: https://lore.kernel.org/20250508184930.183040-2-jsavitz@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-05-09 13:13:54 +02:00
Documentation fs/fs_parse: Remove unused and problematic validate_constant_table() 2025-04-21 10:27:59 +02:00
LICENSES
arch fs: remove uselib() system call 2025-04-21 10:27:59 +02:00
block
certs
crypto
drivers
fs fs: use writeback_iter directly in mpage_writepages 2025-05-09 12:37:48 +02:00
include fs: add S_ANON_INODE 2025-04-21 13:20:14 +02:00
init fs: remove uselib() system call 2025-04-21 10:27:59 +02:00
io_uring
ipc
kernel kernel/nsproxy: remove unnecessary guards 2025-05-09 13:13:54 +02:00
lib
mm fs: add S_ANON_INODE 2025-04-21 13:20:14 +02:00
net
rust
samples
scripts
security
sound
tools fs: remove uselib() system call 2025-04-21 10:27:59 +02:00
usr
virt
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.