| commit | fd3d664fef97cf01f8e28fe0b024ad52f3bbc1bc | [log] [tgz] |
|---|---|---|
| author | Eric Dumazet <[email protected]> | Tue Dec 09 13:14:11 2008 -0800 |
| committer | Linus Torvalds <[email protected]> | Wed Dec 10 08:01:52 2008 -0800 |
| tree | cc1b4d38e5ebd88c25b2bcee684c9e882be9a2ac | |
| parent | fe102c71a65a503646bcc94ccb6859da613c2f4f [diff] |
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 <[email protected]> Acked-by: David S. Miller <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mingming Cao <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>