aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAlex Dewar <[email protected]>2020-08-25 17:45:18 +0100
committerGreg Kroah-Hartman <[email protected]>2020-08-28 12:31:39 +0200
commit90ca6333fd65f318c47bff425e1ea36c0a5539f6 (patch)
tree9d176dcafbd4d520ed292a583406396b85e2389a /tools/perf/scripts/python/stackcollapse.py
parentda0d6b3a536bc800cb46b35cc75327fd546b6272 (diff)
VMCI: check return value of get_user_pages_fast() for errors
In a couple of places in qp_host_get_user_memory(), get_user_pages_fast() is called without properly checking for errors. If e.g. -EFAULT is returned, this negative value will then be passed on to qp_release_pages(), which expects a u64 as input. Fix this by only calling qp_release_pages() when we have a positive number returned. Fixes: 06164d2b72aa ("VMCI: queue pairs implementation.") Signed-off-by: Alex Dewar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions