summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-proc.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-12-09 13:14:11 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-10 08:01:52 -0800
commitfd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc (patch)
treecc1b4d38e5ebd88c25b2bcee684c9e882be9a2ac /drivers/rtc/rtc-proc.c
parentfe102c71a65a503646bcc94ccb6859da613c2f4f (diff)
downloadblackbird-op-linux-fd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc.tar.gz
blackbird-op-linux-fd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc.zip
percpu_counter: fix CPU unplug race in percpu_counter_destroy()
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>
Diffstat (limited to 'drivers/rtc/rtc-proc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud