cvs commit: src/sys/net if_ef.c
    Robert Watson 
    rwatson at FreeBSD.org
       
    Tue Feb 14 13:09:47 PST 2006
    
    
  
rwatson     2006-02-14 21:09:46 UTC
  FreeBSD src repository
  Modified files:        (Branch: RELENG_6)
    sys/net              if_ef.c 
  Log:
  Merge if_ef.c:1.37 from HEAD to RELENG_6:
  
    When freeing the chain of if_ef devices on an aborted load, use
    SLIST_FOREACH_SAFE() rather than SLIST_FOREACH(), as elements are
    freed on each iteration of the loop.  This prevents use-after-free.
  
    Noticed by:     Coverity Prevent analysis tool
  
  Approved by:    re (scottl)
  
  Revision  Changes    Path
  1.34.2.2  +2 -2      src/sys/net/if_ef.c
    
    
More information about the cvs-all
mailing list