aboutsummaryrefslogtreecommitdiff
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2007-06-01 00:46:39 -0700
committerChris Wright <chrisw@sous-sol.org>2007-06-11 11:36:49 -0700
commit99c390976523058d3a4263567a9067f4b0f7556b (patch)
tree6c491353d27ffad3e9f775661007a00c0d337099 /include/net/af_unix.h
parent5eba323639c5964dab344eba4f8613c1e724be6a (diff)
[PATCH] 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. [acme@redhat.com: allocate_msrs() was using for_each_online_cpu()] Signed-off-by: Chris Wright <chrisw@sous-sol.org> Cc: Andi Kleen <ak@suse.de> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Dave Jones <davej@redhat.com> Cc: Chuck Ebbert <cebbert@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/net/af_unix.h')
0 files changed, 0 insertions, 0 deletions