]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Skip parent dir link count update if corrupted
authorJan Kara <jack@suse.cz>
Tue, 26 Nov 2024 11:46:00 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:17 +0000 (10:34 +0100)
commit4d9b403474f03f92a209bd83cc1858bcb63fa7ab
treeae45a6af8760e069f5f6aa2804a147447eaa79e9
parent466ca39dbf5d0ba71c16b15c27478a9c7d4022a8
udf: Skip parent dir link count update if corrupted

[ Upstream commit c5566903af56dd1abb092f18dcb0c770d6cd8dcb ]

If the parent directory link count is too low (likely directory inode
corruption), just skip updating its link count as if it goes to 0 too
early it can cause unexpected issues.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/udf/namei.c