From: Dan Carpenter Date: Fri, 10 Apr 2026 06:47:25 +0000 (+0300) Subject: ntfs: add missing error code in ntfs_mft_record_alloc() X-Git-Tag: v7.1-rc1~14^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8b79d09e3121390ebd04591ac1d8c4dea811815;p=thirdparty%2Fkernel%2Flinux.git ntfs: add missing error code in ntfs_mft_record_alloc() Return -ENOMEM if the kmalloc() fails. Don't return success. Signed-off-by: Dan Carpenter Reviewed-by: Hyunchul Lee Signed-off-by: Namjae Jeon --- diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index 60d64de51d21..7d989267a82b 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c @@ -2503,6 +2503,7 @@ mft_rec_already_initialized: folio_unlock(folio); kunmap_local(m); folio_put(folio); + err = -ENOMEM; goto undo_mftbmp_alloc; }