aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2012-04-20 08:31:34 -0700
committerLinus Torvalds <[email protected]>2012-04-20 11:18:46 -0700
commitb3dc627cabb33fc95f93da78457770c1b2a364d2 (patch)
treee37cae7a574b808b6da48e4c93e81f170efce078 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent310eb776501af8412c570c4bcddc9ab5cecf3d7a (diff)
memblock: memblock should be able to handle zero length operations
Commit 24aa07882b ("memblock, x86: Replace memblock_x86_reserve/ free_range() with generic ones") replaced x86 specific memblock operations with the generic ones; unfortunately, it lost zero length operation handling in the process making the kernel panic if somebody tries to reserve zero length area. There isn't much to be gained by being cranky to zero length operations and panicking is almost the worst response. Drop the BUG_ON() in memblock_reserve() and update memblock_add_region/isolate_range() so that all zero length operations are handled as noops. Signed-off-by: Tejun Heo <[email protected]> Cc: [email protected] Reported-by: Valere Monseur <[email protected]> Bisected-by: Joseph Freeman <[email protected]> Tested-by: Joseph Freeman <[email protected]> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=43098 Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions