aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorEthan Carter Edwards <[email protected]>2025-02-22 19:19:43 +0000
committerMiquel Raynal <[email protected]>2025-02-24 15:38:36 +0000
commit34684bb5e43609ba8ac1a54c4e585493c5486cab (patch)
tree982e686d3ed619d51d8e12e243ec07c48af3fbc7 /net/unix/sysctl_net_unix.c
parentmtd: rawnand: qcom: finish converting register to FIELD_PREP (diff)
downloadkernel-34684bb5e43609ba8ac1a54c4e585493c5486cab.tar.gz
kernel-34684bb5e43609ba8ac1a54c4e585493c5486cab.zip
mtd: rawnand: 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 Signed-off-by: Ethan Carter Edwards <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions