mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
net: fix the use of this_cpu_ptr
flush_tasklet is not percpu var, and percpu is percpu var, and this_cpu_ptr(&info->cache->percpu->flush_tasklet) is not equal to &this_cpu_ptr(info->cache->percpu)->flush_tasklet 1f743b076(use this_cpu_ptr per-cpu helper) introduced this bug. Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1bc7db1678
commit
50eab0503a
@ -328,7 +328,7 @@ static void flow_cache_flush_per_cpu(void *data)
|
||||
struct flow_flush_info *info = data;
|
||||
struct tasklet_struct *tasklet;
|
||||
|
||||
tasklet = this_cpu_ptr(&info->cache->percpu->flush_tasklet);
|
||||
tasklet = &this_cpu_ptr(info->cache->percpu)->flush_tasklet;
|
||||
tasklet->data = (unsigned long)info;
|
||||
tasklet_schedule(tasklet);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user