aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorLiam R. Howlett <[email protected]>2023-04-06 15:30:50 -0400
committerAndrew Morton <[email protected]>2023-04-16 10:41:24 -0700
commit82f951340f25bba262766f82caec54e7fd6a73c7 (patch)
tree5d60ebbb9d88235c27cc1f0e73107d2228adda55 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentdd47ac428c3f5f3bcabe845f36be870fe6c20784 (diff)
mm/mprotect: fix do_mprotect_pkey() return on error
When the loop over the VMA is terminated early due to an error, the return code could be overwritten with ENOMEM. Fix the return code by only setting the error on early loop termination when the error is not set. User-visible effects include: attempts to run mprotect() against a special mapping or with a poorly-aligned hugetlb address should return -EINVAL, but they presently return -ENOMEM. In other cases an -EACCESS should be returned. Link: https://lkml.kernel.org/r/[email protected] Fixes: 2286a6914c77 ("mm: change mprotect_fixup to vma iterator") Signed-off-by: Liam R. Howlett <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions