aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorAndrei Vagin <[email protected]>2025-11-11 06:28:15 +0000
committerChristian Brauner <[email protected]>2025-11-12 09:42:49 +0000
commit78f0e33cd6c939a555aa80dbed2fec6b333a7660 (patch)
tree109ef3952fc5bc620bc4749ad675f86ab373695f /lib/mpi/mpi-mod.c
parentpower: always freeze efivarfs (diff)
downloadkernel-78f0e33cd6c939a555aa80dbed2fec6b333a7660.tar.gz
kernel-78f0e33cd6c939a555aa80dbed2fec6b333a7660.zip
fs/namespace: correctly handle errors returned by grab_requested_mnt_ns
grab_requested_mnt_ns was changed to return error codes on failure, but its callers were not updated to check for error pointers, still checking only for a NULL return value. This commit updates the callers to use IS_ERR() or IS_ERR_OR_NULL() and PTR_ERR() to correctly check for and propagate errors. This also makes sure that the logic actually works and mount namespace file descriptors can be used to refere to mounts. Christian Brauner <[email protected]> says: Rework the patch to be more ergonomic and in line with our overall error handling patterns. Fixes: 7b9d14af8777 ("fs: allow mount namespace fd") Cc: Christian Brauner <[email protected]> Signed-off-by: Andrei Vagin <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions