From 27110888543c046fecdb947fc34bcc3b64313488 Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Wed, 7 Oct 2026 17:12:54 +0900 Subject: [PATCH] ntfs: propagate EA truncate errors Propagate errors from truncating an EA stream so callers do not report a successful xattr update after a failed resize. Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations") Signed-off-by: Namjae Jeon --- fs/ntfs/ea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs/ea.c b/fs/ntfs/ea.c index ddc201e3e2aa..20ca1d74955f 100644 --- a/fs/ntfs/ea.c +++ b/fs/ntfs/ea.c @@ -37,7 +37,7 @@ static int ntfs_write_ea(struct ntfs_inode *ni, __le32 type, char *value, s64 ea struct ntfs_inode *ea_ni = NTFS_I(ea_vi); if (need_truncate && ea_ni->data_size > ea_off + ea_size) - ntfs_attr_truncate(ea_ni, ea_off + ea_size); + err = ntfs_attr_truncate(ea_ni, ea_off + ea_size); mark_mft_record_dirty(ni); }