[PATCH] fs/ntfs3: "add a boundary check for EA_FULL" lose right parenthesis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Edward Adam Davis <eadavis@xxxxxxxx>

I have provided a new patch:
https://lore.kernel.org/all/20220912065431.3043731-1-eadavis@xxxxxxxx
It is a collection of the current patch and the previous one.

Signed-off-by: Edward Adam Davis <eadavis@xxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Reported-by: syzbot+c4d950787fd5553287b7@xxxxxxxxxxxxxxxxxxxxxxxxx
---
 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





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux