sunvnet: Add missing rcu_read_unlock() in vnet_start_xmit
The out_dropped label will only do rcu_read_unlock for non-null port. So add the missing rcu_read_unlock() when bailing due to non-null port. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
777362d721
commit
df20286ab1
|
@ -981,8 +981,10 @@ static int vnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
rcu_read_lock();
|
||||
port = __tx_port_find(vp, skb);
|
||||
if (unlikely(!port))
|
||||
if (unlikely(!port)) {
|
||||
rcu_read_unlock();
|
||||
goto out_dropped;
|
||||
}
|
||||
|
||||
if (skb->len > port->rmtu) {
|
||||
unsigned long localmtu = port->rmtu - ETH_HLEN;
|
||||
|
|
Loading…
Reference in New Issue