Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Namjae Jeon
e8b79d09 cd8d29c1

+1
+1
fs/ntfs/mft.c
··· 2503 2503 folio_unlock(folio); 2504 2504 kunmap_local(m); 2505 2505 folio_put(folio); 2506 + err = -ENOMEM; 2506 2507 goto undo_mftbmp_alloc; 2507 2508 } 2508 2509