aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavid Rientjes <[email protected]>2018-10-26 15:09:24 -0700
committerLinus Torvalds <[email protected]>2018-10-26 16:26:35 -0700
commit4a222127f3631e6cdde228e3bb6b599f52b96d14 (patch)
tree3491c4f5c4a8eb4f0ca2e9ae416a53fcdce009ea /tools/perf/scripts/python/exported-sql-viewer.py
parent61855f021c3ae2ccc244111e2a321690f9786aed (diff)
mm/page_alloc.c: initialize num_movable in move_freepages()
If move_freepages_block() returns 0 because !zone_spans_pfn(), *num_movable can hold the value from the stack because it does not get initialized in move_freepages(). Move the initialization to move_freepages_block() to guarantee the value actually makes sense. This currently doesn't affect its only caller where num_movable != NULL, so no bug fix, but just more robust. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: David Rientjes <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Greg Thelen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions