lkml.org 
[lkml]   [2020]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 6/6] net: atm: Add annotation for lec_priv_walk()
    On Wed, Apr 29, 2020 at 11:05:28AM +0100, Jules Irenge wrote:
    > Sparse reports a warning at lec_priv_walk()
    > warning: context imbalance in lec_priv_walk() - unexpected unlock
    >
    > The root cause is the missing annotation at lec_priv_walk()
    > To fix this, __acquire() and __release() annotations
    > are added in case conditions are not met.
    > This only instruct Sparse to shutdown the warning
    >
    > Add the __acquire(&priv->lec_arp_lock)
    > Add __release(&priv->lec_arp_lock) annotation

    At least those two I got should be in one patch. Simple fix all same sparse
    issues at once.

    --
    With Best Regards,
    Andy Shevchenko


    \
     
     \ /
      Last update: 2020-04-29 12:23    [W:4.763 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site