summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorLenko Donchev <lenko.donchev@gmail.com>2024-02-11 04:53:14 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-04-17 15:06:27 +0300
commitcef359074cad6456aa060f4d701bd519a5c7baff (patch)
treefba1db64e573690ea461c771e7a24952e9afd45e /scripts/gdb/linux/modules.py
parent0bbac3facb5d6cc0171c45c9873a2dc96bea9680 (diff)
downloadlinux-cef359074cad6456aa060f4d701bd519a5c7baff.tar.xz
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>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions