linux/fs/ntfs3
Lenko Donchev cef359074c
fs/ntfs3: use kcalloc() instead of kzalloc()
We are trying to get rid of all multiplications from allocation
functions to prevent integer overflows[1]. Here the multiplication is
obviously safe, but using kcalloc() is more appropriate and improves
readability. This patch has no effect on runtime behavior.

Link: https://github.com/KSPP/linux/issues/162 [1]
Link: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments [2]

Signed-off-by: Lenko Donchev <lenko.donchev@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2024-04-17 15:06:27 +03:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Use i_size_read and i_size_write 2024-01-29 10:48:33 +03:00
attrlist.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-01-16 11:31:56 +03:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-01-16 11:31:56 +03:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Add ioctl operation for directories (FITRIM) 2024-01-29 12:05:09 +03:00
file.c fs/ntfs3: Add ioctl operation for directories (FITRIM) 2024-01-29 12:05:09 +03:00
frecord.c fs/ntfs3: use kcalloc() instead of kzalloc() 2024-04-17 15:06:27 +03:00
fslog.c fs/ntfs3: Correct function is_rst_area_valid 2024-01-29 10:48:34 +03:00
fsntfs.c fs/ntfs3: Prevent generic message "attempt to access beyond end of device" 2024-01-29 10:48:33 +03:00
index.c fs/ntfs3: Use i_size_read and i_size_write 2024-01-29 10:48:33 +03:00
inode.c fs/ntfs3: Use i_size_read and i_size_write 2024-01-29 10:48:33 +03:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
lznt.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
Makefile
namei.c vfs-6.9.misc 2024-03-11 09:38:17 -07:00
ntfs_fs.h fs/ntfs3: Add ioctl operation for directories (FITRIM) 2024-01-29 12:05:09 +03:00
ntfs.h fs/ntfs3: Disable ATTR_LIST_ENTRY size check 2023-12-21 14:25:40 +03:00
record.c fs/ntfs3: Fixed overflow check in mi_enum_attr() 2024-01-29 10:48:34 +03:00
run.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
super.c mm, slab: remove last vestiges of SLAB_MEM_SPREAD 2024-03-12 20:32:19 -07:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c fs/ntfs3: Fix oob in ntfs_listxattr 2024-01-29 12:05:08 +03:00