Unverified Commit c27ef0ce authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2302 xfrm6: fix inet6_dev refcount underflow problem

parents 1a636899 519bbbfe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,11 +120,11 @@ static void xfrm6_dst_destroy(struct dst_entry *dst)
{
	struct xfrm_dst *xdst = (struct xfrm_dst *)dst;

	if (likely(xdst->u.rt6.rt6i_idev))
		in6_dev_put(xdst->u.rt6.rt6i_idev);
	dst_destroy_metrics_generic(dst);
	if (xdst->u.rt6.rt6i_uncached_list)
		rt6_uncached_list_del(&xdst->u.rt6);
	if (likely(xdst->u.rt6.rt6i_idev))
		in6_dev_put(xdst->u.rt6.rt6i_idev);
	xfrm_dst_destroy(xdst);
}