diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-06-16 13:49:32 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2015-06-16 15:42:26 +0300 |
commit | 7861c7a4ca5c637f3cad1e343602a15e857140fd (patch) | |
tree | 00f1595dd1de98ce349596b1fddff9e3a09ed7bc /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 6876f98bfe7751a9ee0cd88390912df305e25183 (diff) |
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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions