]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: Fix ordering issue in xfrm_dst_hash_transfer().
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 18 Feb 2008 07:29:30 +0000 (23:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Feb 2008 07:29:30 +0000 (23:29 -0800)
commit52ca69053a29ac1803226b9675d685dc23c5b96e
tree7c5b3e4d4875c002c8315c05ced0e16392eb2a30
parent274c05fecb7183d1781f52ad461b3468ba83c433
[XFRM]: Fix ordering issue in xfrm_dst_hash_transfer().

Keep ordering of policy entries with same selector in
xfrm_dst_hash_transfer().

Issue should not appear in usual cases because multiple policy entries
with same selector are basically not allowed so far.  Bug was pointed
out by Sebastien Decugis <sdecugis@hongo.wide.ad.jp>.

We could convert bydst from hlist to list and use list_add_tail()
instead.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Sebastien Decugis <sdecugis@hongo.wide.ad.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c