Skip to content

Commit 1aaef86

Browse files
shimodaydavem330
authored andcommitted
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: 33f5d73 ("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>
1 parent 109b25d commit 1aaef86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/renesas/rswitch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ static netdev_tx_t rswitch_start_xmit(struct sk_buff *skb, struct net_device *nd
15351535
ts_info = kzalloc(sizeof(*ts_info), GFP_ATOMIC);
15361536
if (!ts_info) {
15371537
dma_unmap_single(ndev->dev.parent, dma_addr, skb->len, DMA_TO_DEVICE);
1538-
return -ENOMEM;
1538+
return ret;
15391539
}
15401540

15411541
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;

0 commit comments

Comments
 (0)