]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: avoid pointless cred reference count bump
authorChristian Brauner <brauner@kernel.org>
Mon, 25 Nov 2024 14:10:14 +0000 (15:10 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 2 Dec 2024 10:25:12 +0000 (11:25 +0100)
commitfacc239a8c4980e17c832a7d5ee3809a2e2a45bd
tree6c17eea0685ddf4f75cc369f34c00c2c361b4d47
parent7708f3a7d25f5f1e80a5ef6abc3abde00128f88c
ovl: avoid pointless cred reference count bump

security_inode_copy_up() allocates a set of new credentials and has
taken a reference count.

Link: https://lore.kernel.org/r/20241125-work-cred-v2-18-68b9d38bb5b2@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/copy_up.c