diff options
author | huaibin Wang <huaibin.wang@6wind.com> | 2015-02-11 18:10:36 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2015-02-12 07:10:56 +0100 |
commit | ac37e2515c1a89c477459a2020b6bfdedabdb91b (patch) | |
tree | a1d2ad2b28b5b4cd032dca88c6c297afb7155d24 /net/ipv4/inet_diag.c | |
parent | 044a832a7779c0638bea2d0fea901c055b995f4a (diff) | |
download | op-kernel-dev-ac37e2515c1a89c477459a2020b6bfdedabdb91b.zip op-kernel-dev-ac37e2515c1a89c477459a2020b6bfdedabdb91b.tar.gz |
xfrm: release dst_orig in case of error in xfrm_lookup()
dst_orig should be released on error. Function like __xfrm_route_forward()
expects that behavior.
Since a recent commit, xfrm_lookup() may also be called by xfrm_lookup_route(),
which expects the opposite.
Let's introduce a new flag (XFRM_LOOKUP_KEEP_DST_REF) to tell what should be
done in case of error.
Fixes: f92ee61982d("xfrm: Generate blackhole routes only from route lookup functions")
Signed-off-by: huaibin Wang <huaibin.wang@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/inet_diag.c')
0 files changed, 0 insertions, 0 deletions