]> git.baikalelectronics.ru Git - kernel.git/commit
udp: ipv4: do not use sk_dst_lock from softirq context
authorEric Dumazet <edumazet@google.com>
Sun, 15 Dec 2013 18:53:46 +0000 (10:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 19:50:58 +0000 (14:50 -0500)
commit009a0c00df5c4d496cad57dc5916f6212cc6705f
treecad273de648996d679f3cbfba678b84ff14f40b7
parent5085421a7ad349392892cf08cad0a200de843560
udp: ipv4: do not use sk_dst_lock from softirq context

Using sk_dst_lock from softirq context is not supported right now.

Instead of adding BH protection everywhere,
udp_sk_rx_dst_set() can instead use xchg(), as suggested
by David.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Fixes: 3eb3dc0244ee ("udp: ipv4: must add synchronization in udp_sk_rx_dst_set()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c