]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ecryptfs: Fix improper mknod pairing of start_creating()/end_removing()
authorTyler Hicks <code@tyhicks.com>
Tue, 23 Dec 2025 19:41:52 +0000 (13:41 -0600)
committerChristian Brauner <brauner@kernel.org>
Wed, 24 Dec 2025 12:58:04 +0000 (13:58 +0100)
commit5f9ad16bccd351321d9cd65726fd09390d34b06c
tree18169924db33b51e79fa672893a7c02bcf795ca4
parent3dd57ddec9e3a98387196a3f53b8c036977d8c0f
ecryptfs: Fix improper mknod pairing of start_creating()/end_removing()

The ecryptfs_start_creating_dentry() function must be paired with the
end_creating() function. Fix ecryptfs_mknod() so that end_creating() is
properly called in the return path, instead of end_removing().

Fixes: f046fbb4d81d ("ecryptfs: use new start_creating/start_removing APIs")
Signed-off-by: Tyler Hicks <code@tyhicks.com>
Link: https://patch.msgid.link/20251223194153.2818445-2-code@tyhicks.com
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ecryptfs/inode.c