lkml.org 
[lkml]   [2020]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] net/sonic: Fix some resource leaks in error handling paths
    On Fri, 8 May 2020, Jakub Kicinski wrote:

    > On Fri, 8 May 2020 19:25:57 +0200 Christophe JAILLET wrote:
    > > @@ -527,8 +531,9 @@ static int mac_sonic_platform_remove(struct platform_device *pdev)
    > > struct sonic_local* lp = netdev_priv(dev);
    > >
    > > unregister_netdev(dev);
    > > - dma_free_coherent(lp->device, SIZEOF_SONIC_DESC * SONIC_BUS_SCALE(lp->dma_bitmode),
    > > - lp->descriptors, lp->descriptors_laddr);
    > > + dma_free_coherent(lp->device,
    > > + SIZEOF_SONIC_DESC * SONIC_BUS_SCALE(lp->dma_bitmode),
    > > + lp->descriptors, lp->descriptors_laddr);
    > > free_netdev(dev);
    > >
    > > return 0;
    >
    > This is a white-space only change, right? Since this is a fix we should
    > avoid making cleanups which are not strictly necessary.
    >

    I think it is harmless if it doesn't create any merge conflicts. Any merge
    conflict created by the whitespace change would have happened anyway,
    because all of the changes in this patch are very closely related. That's
    why I was happy to put a 'reviewed-by' tag on this.

    \
     
     \ /
      Last update: 2020-05-10 01:53    [W:3.039 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site