diff options
author | 2023-11-22 14:11:42 +0900 | |
---|---|---|
committer | 2023-11-24 01:52:35 +0000 | |
commit | 1aaef8634a20b322c82e84f12a9b6aec1e2fd4fa (patch) | |
tree | 2348f042b5c7e656cc6ed4fb66212aa0a9e83bac /drivers/net/ethernet/renesas | |
parent | net: rswitch: Fix type of ret in rswitch_start_xmit() (diff) | |
download | linux-1aaef8634a20b322c82e84f12a9b6aec1e2fd4fa.tar.gz linux-1aaef8634a20b322c82e84f12a9b6aec1e2fd4fa.tar.bz2 linux-1aaef8634a20b322c82e84f12a9b6aec1e2fd4fa.zip |
net: rswitch: Fix return value in rswitch_start_xmit()
This .ndo_start_xmit() function should return netdev_tx_t value,
not -ENOMEM. So, fix it.
Fixes: 33f5d733b589 ("net: renesas: rswitch: Improve TX timestamp accuracy")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/rswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c index d53d90020904..45bf9808c143 100644 --- a/drivers/net/ethernet/renesas/rswitch.c +++ b/drivers/net/ethernet/renesas/rswitch.c @@ -1535,7 +1535,7 @@ static netdev_tx_t rswitch_start_xmit(struct sk_buff *skb, struct net_device *nd ts_info = kzalloc(sizeof(*ts_info), GFP_ATOMIC); if (!ts_info) { dma_unmap_single(ndev->dev.parent, dma_addr, skb->len, DMA_TO_DEVICE); - return -ENOMEM; + return ret; } skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; |