Commit e8b79d09 authored by Dan Carpenter's avatar Dan Carpenter Committed by Namjae Jeon
Browse files

ntfs: add missing error code in ntfs_mft_record_alloc()



Return -ENOMEM if the kmalloc() fails.  Don't return success.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent cd8d29c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2503,6 +2503,7 @@ int ntfs_mft_record_alloc(struct ntfs_volume *vol, const int mode,
			folio_unlock(folio);
			kunmap_local(m);
			folio_put(folio);
			err = -ENOMEM;
			goto undo_mftbmp_alloc;
		}