diff options
author | Dan Carpenter <[email protected]> | 2017-09-30 11:15:52 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2017-10-17 13:56:20 -0500 |
commit | 343dc693f7b79885197f9d37dd8b711b0e3ffc8f (patch) | |
tree | 03d18b9cc634d4634b374796e93cca398d2b98e1 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) |
misc: pci_endpoint_test: Prevent some integer overflows
"size + max" can have an arithmetic overflow when we're allocating:
orig_src_addr = dma_alloc_coherent(dev, size + alignment, ...
Add a few checks to prevent that.
Fixes: 13107c60681f ("misc: pci_endpoint_test: Add support to provide aligned buffer addresses")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions