diff options
author | 2024-12-22 21:23:56 -0500 | |
---|---|---|
committer | 2025-01-17 03:17:20 +0800 | |
commit | a78c5c2269e39544fab4140105f55fca4502e915 (patch) | |
tree | 1fcc749d3427d444605338f8a62e2385b2d4edc9 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.13-rc7 (diff) | |
download | wireguard-linux-a78c5c2269e39544fab4140105f55fca4502e915.tar.xz wireguard-linux-a78c5c2269e39544fab4140105f55fca4502e915.zip |
fs: erofs: xattr.c change kzalloc to kcalloc
Refactor xattr.c to use kcalloc instead of kzalloc when multiplying
allocation size by count. This refactor prevents unintentional
memory overflows. Discovered by checkpatch.pl.
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Link: https://lore.kernel.org/r/i3CLJhMELKzBJr3DaRyv-hP_4m-3Twx0sgBWXW6naZlMtHrIeWr93xOFshX8qZHDrJeSjHMTiUOh8JmBZ9v0AB-S1lIYM_d-vasSRlsF_s4=@ethancedwards.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions