Skip to content

Commit 940af3f

Browse files
shimodaygregkh
authored andcommitted
net: rswitch: Fix return value in rswitch_start_xmit()
[ Upstream commit 1aaef86 ] 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 <[email protected]> Reviewed-by: Wojciech Drewek <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 8531167 commit 940af3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/renesas/rswitch.c

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

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

0 commit comments

Comments
 (0)