aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2014-04-09 12:25:43 +1000
committerNeilBrown <[email protected]>2014-04-09 14:42:23 +1000
commitda1aab3dca9aa88ae34ca392470b8943159e25fe (patch)
tree435a7a9ea35a3a68b6943e4bbf24b6c9b09281e3 /tools/perf/util/trace-event-scripting.c
parent035328c202d26a824b8632fd3b00635db5aee5a2 (diff)
md/raid1: r1buf_pool_alloc: free allocate pages when subsequent allocation fails.
When performing a user-request check/repair (MD_RECOVERY_REQUEST is set) on a raid1, we allocate multiple bios each with their own set of pages. If the page allocations for one bio fails, we currently do *not* free the pages allocated for the previous bios, nor do we free the bio itself. This patch frees all the already-allocate pages, and makes sure that all the bios are freed as well. This bug can cause a memory leak which can ultimately OOM a machine. It was introduced in 3.10-rc1. Fixes: a07876064a0b73ab5ef1ebcf14b1cf0231c07858 Cc: Kent Overstreet <[email protected]> Cc: [email protected] (3.10+) Reported-by: Russell King - ARM Linux <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions