From: Edward Adam Davis <eadavis(a)sina.com>
I have provided a new patch:
https://lore.kernel.org/all/20220912065431.3043731-1-eadavis@sina.com
It is a collection of the current patch and the previous one.
Signed-off-by: Edward Adam Davis <eadavis(a)sina.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: syzbot+c4d950787fd5553287b7(a)syzkaller.appspotmail.com
---
fs/ntfs3/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c
index c90cc453390d..4ec8f7e41b6d 100644
--- a/fs/ntfs3/xattr.c
+++ b/fs/ntfs3/xattr.c
@@ -69,7 +69,7 @@ static inline bool find_ea(const struct EA_FULL *ea_all, u32 bytes,
if (next_len >= bytes ||
((!ea->size) &&
(next_len + ea->name_len +
- le16_to_cpu(ea->elength) >= bytes))
+ le16_to_cpu(ea->elength) >= bytes)))
return false;
}
}
--
2.37.2