Skip to content

Commit

Permalink
ctcm: invalid return code from hard_start_xmit
Browse files Browse the repository at this point in the history
Avoid kernel warning by using the correct hard_start_xmit return
code NETDEV_TX_BUSY for skb requeuing.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ursula Braun authored and David S. Miller committed Mar 24, 2009
1 parent 8f0c40d commit 3a05d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,11 @@ static int ctcm_tx(struct sk_buff *skb, struct net_device *dev)
}

if (ctcm_test_and_set_busy(dev))
return -EBUSY;
return NETDEV_TX_BUSY;

dev->trans_start = jiffies;
if (ctcm_transmit_skb(priv->channel[WRITE], skb) != 0)
return 1;
return NETDEV_TX_BUSY;
return 0;
}

Expand Down

0 comments on commit 3a05d14

Please sign in to comment.