cvs commit: src/sys/net if_ef.c

Robert Watson rwatson at FreeBSD.org
Fri Jan 13 15:20:47 PST 2006


rwatson     2006-01-13 23:20:46 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_ef.c 
  Log:
  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
  MFC after:      3 days
  
  Revision  Changes    Path
  1.37      +2 -2      src/sys/net/if_ef.c


More information about the cvs-src mailing list