RE: [PATCH net-next v3 8/9] net: rswitch: Add jumbo frames handling for TX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Paolo,

> From: Paolo Abeni, Sent: Wednesday, December 6, 2023 7:21 PM
> 
> On Mon, 2023-12-04 at 10:20 +0900, Yoshihiro Shimoda wrote:
> > @@ -1647,25 +1676,32 @@ static netdev_tx_t rswitch_start_xmit(struct sk_buff *skb, struct net_device *nd
> >  	if (skb_put_padto(skb, ETH_ZLEN))
> >  		return ret;
> >
> > -	dma_addr = dma_map_single(ndev->dev.parent, skb->data, skb->len, DMA_TO_DEVICE);
> > -	if (dma_mapping_error(ndev->dev.parent, dma_addr))
> > +	dma_addr_orig = dma_map_single(ndev->dev.parent, skb->data, skb->len, DMA_TO_DEVICE);
> > +	if (dma_mapping_error(ndev->dev.parent, dma_addr_orig))
> >  		goto err_kfree;
> >
> >  	gq->skbs[gq->cur] = skb;
> >  	gq->unmap_addrs[gq->cur] = dma_addr;
> 
> Here 'dma_addr' is still used uninitialized. I guess you should use
> 'dma_addr_orig' even here.

Oops! I should fix it. I'll make v4 patch. Thank you for your review!

Best regards,
Yoshihiro Shimoda

> Cheers,
> 
> Paolo





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux