diff options
author | 2015-06-16 13:49:32 +0300 | |
---|---|---|
committer | 2015-06-16 15:42:26 +0300 | |
commit | 7861c7a4ca5c637f3cad1e343602a15e857140fd (patch) | |
tree | 00f1595dd1de98ce349596b1fddff9e3a09ed7bc /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/radeon: remove obsolete kfd_bo from radeon_device (diff) | |
download | wireguard-linux-7861c7a4ca5c637f3cad1e343602a15e857140fd.tar.xz wireguard-linux-7861c7a4ca5c637f3cad1e343602a15e857140fd.zip |
drm/amdkfd: fix some range checks in address watch ioctl
buf_size_in_bytes must be large enough to hold ->num_watch_points and
watch_mode so I have added a sizeof(int) * 2 to the minimum size.
Also we have to subtract sizeof(*args) from the max args_idx limit so
that it matches the allocation. Also I changed a > to >= for the last
compare.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions