aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJianqun Xu <[email protected]>2020-08-11 18:31:54 -0700
committerLinus Torvalds <[email protected]>2020-08-12 10:57:57 -0700
commit835832ba01bb444c7e45139e4b807527c119dafc (patch)
tree70fa999aa9337310c37ba78629cb5351f2019772 /tools/perf/scripts/python
parent1a5bae25e3cf95c4e83a97f87a6b5280d9acbb22 (diff)
mm/cma.c: fix NULL pointer dereference when cma could not be activated
In some case the cma area could not be activated, but the cma_alloc be used under this case, then the kernel will crash caused by NULL pointer dereference. Add bitmap valid check in cma_alloc to avoid this issue. Signed-off-by: Jianqun Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions