diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 23468672a7676035fee5f7ada0aa3c85a8222115..89b178a78dc7894ac477b876e3e25320c8265f85 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -285,8 +285,9 @@ void xfrm_local_error(struct sk_buff *skb, int mtu) return; afinfo = xfrm_state_get_afinfo(proto); - if (afinfo) + if (afinfo) { afinfo->local_error(skb, mtu); - rcu_read_unlock(); + rcu_read_unlock(); + } } EXPORT_SYMBOL_GPL(xfrm_local_error);