diff options
author | 2012-06-05 03:00:18 +0000 | |
---|---|---|
committer | 2012-06-06 10:45:15 -0700 | |
commit | 55432d2b543a4b6dfae54f5c432a566877a85d90 (patch) | |
tree | f830eb5150e38be149fcfce74f68716f5bf2641a /drivers/leds/leds-lp3944.c | |
parent | net: sierra_net: device IDs for Aircard 320U++ (diff) | |
download | linux-dev-55432d2b543a4b6dfae54f5c432a566877a85d90.tar.xz linux-dev-55432d2b543a4b6dfae54f5c432a566877a85d90.zip |
inetpeer: fix a race in inetpeer_gc_worker()
commit 5faa5df1fa2024 (inetpeer: Invalidate the inetpeer tree along with
the routing cache) added a race :
Before freeing an inetpeer, we must respect a RCU grace period, and make
sure no user will attempt to increase refcnt.
inetpeer_invalidate_tree() waits for a RCU grace period before inserting
inetpeer tree into gc_list and waking the worker. At that time, no
concurrent lookup can find a inetpeer in this tree.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/leds/leds-lp3944.c')
0 files changed, 0 insertions, 0 deletions