diff options
author | 2020-09-21 20:03:36 +0300 | |
---|---|---|
committer | 2020-10-07 12:13:22 +0200 | |
commit | bae12df966f0e1a9b40a2c46d01a0ad79b2c865c (patch) | |
tree | b3646bc6434e34f90442e5eda3849236f8d32e91 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: use kvzalloc() to allocate clone_roots in btrfs_ioctl_send() (diff) | |
download | wireguard-linux-bae12df966f0e1a9b40a2c46d01a0ad79b2c865c.tar.xz wireguard-linux-bae12df966f0e1a9b40a2c46d01a0ad79b2c865c.zip |
btrfs: use kvcalloc for allocation in btrfs_ioctl_send()
Replace kvzalloc() call with kvcalloc() that also checks the size
internally. There's a standalone overflow check in the function so we
can return invalid parameter combination. Use array_size() helper to
compute the memory size for clone_sources_tmp.
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Denis Efremov <efremov@linux.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions