Commit 4e584d66 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller

netiucv: invalid return code from hard_start_xmit

Avoid kernel warning by using the correct hard_start_xmit return
code NETDEV_TX_BUSY for skb requeuing.
Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e669d32
...@@ -1312,7 +1312,7 @@ static int netiucv_tx(struct sk_buff *skb, struct net_device *dev) ...@@ -1312,7 +1312,7 @@ static int netiucv_tx(struct sk_buff *skb, struct net_device *dev)
if (netiucv_test_and_set_busy(dev)) { if (netiucv_test_and_set_busy(dev)) {
IUCV_DBF_TEXT(data, 2, "EBUSY from netiucv_tx\n"); IUCV_DBF_TEXT(data, 2, "EBUSY from netiucv_tx\n");
return -EBUSY; return NETDEV_TX_BUSY;
} }
dev->trans_start = jiffies; dev->trans_start = jiffies;
rc = netiucv_transmit_skb(privptr->conn, skb) != 0; rc = netiucv_transmit_skb(privptr->conn, skb) != 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment