]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fs/ntfs3: Fix warning possible deadlock in ntfs_set_state
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 19 Aug 2024 13:26:22 +0000 (16:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Nov 2024 15:25:53 +0000 (16:25 +0100)
[ Upstream commit 5b2db723455a89dc96743d34d8bdaa23a402db2f ]

Use non-zero subkey to skip analyzer warnings.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Reported-by: syzbot+c2ada45c23d98d646118@syzkaller.appspotmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/ntfs_fs.h

index b4c09b99edd1d479868dee36e7352fd6341620e8..7b46926e920c60b4ed18ed095af820a170c2b653 100644 (file)
@@ -328,7 +328,7 @@ struct mft_inode {
 
 /* Nested class for ntfs_inode::ni_lock. */
 enum ntfs_inode_mutex_lock_class {
-       NTFS_INODE_MUTEX_DIRTY,
+       NTFS_INODE_MUTEX_DIRTY = 1,
        NTFS_INODE_MUTEX_SECURITY,
        NTFS_INODE_MUTEX_OBJID,
        NTFS_INODE_MUTEX_REPARSE,