Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 23:20:46 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net if_ef.c
Message-ID:  <200601132320.k0DNKk7n096966@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601132320.k0DNKk7n096966>