Skip to content

Commit

Permalink
claw: invalid return codes from hard_start_xmit
Browse files Browse the repository at this point in the history
Avoid kernel warnings 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 4e584d6 commit 8f0c40d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/s390/net/claw.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ claw_tx(struct sk_buff *skb, struct net_device *dev)
rc=claw_hw_tx( skb, dev, 1 );
spin_unlock_irqrestore(get_ccwdev_lock(p_ch->cdev), saveflags);
CLAW_DBF_TEXT_(4, trace, "clawtx%d", rc);
if (rc)
rc = NETDEV_TX_BUSY;
return rc;
} /* end of claw_tx */

Expand Down

0 comments on commit 8f0c40d

Please sign in to comment.