Revert "ipv6: prevent UAF in ip6_send_skb()"
This reverts commit d6266009b2
.
This commit is contained in:
parent
6fe606a02b
commit
e14260decb
1 changed files with 0 additions and 2 deletions
|
@ -1968,7 +1968,6 @@ int ip6_send_skb(struct sk_buff *skb)
|
|||
struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
|
||||
int err;
|
||||
|
||||
rcu_read_lock();
|
||||
err = ip6_local_out(net, skb->sk, skb);
|
||||
if (err) {
|
||||
if (err > 0)
|
||||
|
@ -1978,7 +1977,6 @@ int ip6_send_skb(struct sk_buff *skb)
|
|||
IPSTATS_MIB_OUTDISCARDS);
|
||||
}
|
||||
|
||||
rcu_read_unlock();
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue