aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 077bbf9fb9b7..5e6b05ac1260 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -13,7 +13,6 @@
13 * 13 *
14 */ 14 */
15 15
16#include <asm/bug.h>
17#include <linux/config.h> 16#include <linux/config.h>
18#include <linux/slab.h> 17#include <linux/slab.h>
19#include <linux/kmod.h> 18#include <linux/kmod.h>
@@ -886,11 +885,11 @@ restart:
886 * We can't enlist stable bundles either. 885 * We can't enlist stable bundles either.
887 */ 886 */
888 write_unlock_bh(&policy->lock); 887 write_unlock_bh(&policy->lock);
889
890 xfrm_pol_put(policy);
891 if (dst) 888 if (dst)
892 dst_free(dst); 889 dst_free(dst);
893 goto restart; 890
891 err = -EHOSTUNREACH;
892 goto error;
894 } 893 }
895 dst->next = policy->bundles; 894 dst->next = policy->bundles;
896 policy->bundles = dst; 895 policy->bundles = dst;