]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitb791160b5af4ea95c72fb59d13079664beca1963
tree7c5b3e4d4875c002c8315c05ced0e16392eb2a30
parent82453021b8be85171350c695d7ebafe7b517c812
[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