aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorChris Wright <[email protected]>2007-06-01 00:46:39 -0700
committerLinus Torvalds <[email protected]>2007-06-01 08:18:28 -0700
commit0939c17c7bcf1c838bea4445b80a6966809a438f (patch)
tree3d93789babaab344aa9c6840e267ffe34caadc6c /include/linux/timerqueue.h
parent24faa9eef876d39e0826a36f31ae0e8b0eeb9835 (diff)
x86: fix oprofile double free
Chuck reports that the recent fix from Andi to oprofile 6c977aad03a18019015035958c65b6729cd0574c introduces a double free. Each cpu's cpu_msrs is setup to point to cpu 0's, which causes free_msrs to free cpu 0's pointers for_each_possible_cpu. Rather than copy the pointers, do a deep copy instead. [[email protected]: allocate_msrs() was using for_each_online_cpu()] Signed-off-by: Chris Wright <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Alan Cox <[email protected]> Cc: Dave Jones <[email protected]> Cc: Chuck Ebbert <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions