summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2020-09-21 20:03:36 +0300
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:13:22 +0200
commitbae12df966f0e1a9b40a2c46d01a0ad79b2c865c (patch)
treeb3646bc6434e34f90442e5eda3849236f8d32e91 /include
parent8eb2fd00153a3a96a19c62ac9c6d48c2efebe5e8 (diff)
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 'include')
0 files changed, 0 insertions, 0 deletions