https://github.com/torvalds/linux
Revision fd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc authored by Eric Dumazet on 09 December 2008, 21:14:11 UTC, committed by Linus Torvalds on 10 December 2008, 16:01:52 UTC
We should first delete the counter from percpu_counters list
before freeing memory, or a percpu_counter_hotcpu_callback()
could dereference a NULL pointer.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fe102c7
History
Tip revision: fd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc authored by Eric Dumazet on 09 December 2008, 21:14:11 UTC
percpu_counter: fix CPU unplug race in percpu_counter_destroy()
Tip revision: fd3d664
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.0 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 103.5 KB
Makefile -rw-r--r-- 55.9 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top