summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYunfeng Ye <yeyunfeng@huawei.com>2019-10-14 10:15:57 +0200
committerPeter Zijlstra <peterz@infradead.org>2019-10-17 21:31:55 +0200
commitd7e78706e43107fa269fe34b1a69e653f5ec9f2c (patch)
tree123ce021f2ad3c6a16bc359bd5f98296d94be3db /scripts
parentperf/ring_buffer: Modify the parameter type of perf_mmap_free_page() (diff)
downloadlinux-d7e78706e43107fa269fe34b1a69e653f5ec9f2c.tar.xz
linux-d7e78706e43107fa269fe34b1a69e653f5ec9f2c.zip
perf/ring_buffer: Matching the memory allocate and free, in rb_alloc()
Currently perf_mmap_alloc_page() is used to allocate memory in rb_alloc(), but using free_page() to free memory in the failure path. It's better to use perf_mmap_free_page() instead. Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: <jolsa@redhat.co> Cc: <acme@kernel.org> Cc: <mingo@redhat.com> Cc: <mark.rutland@arm.com> Cc: <namhyung@kernel.org> Cc: <alexander.shishkin@linux.intel.com> Link: https://lkml.kernel.org/r/575c7e8c-90c7-4e3a-b41d-f894d8cdbd7f@huawei.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions