]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: add missing error code in ntfs_mft_record_alloc()
authorDan Carpenter <error27@gmail.com>
Fri, 10 Apr 2026 06:47:25 +0000 (09:47 +0300)
committerNamjae Jeon <linkinjeon@kernel.org>
Sat, 18 Apr 2026 02:33:13 +0000 (11:33 +0900)
commite8b79d09e3121390ebd04591ac1d8c4dea811815
tree52a8f07699e9d7bad2d570095d336b76735564f0
parentcd8d29c1b3c3397493115a9e919a806ea28aef05
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 <error27@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/mft.c