Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 23:24:09 +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:  <200601132324.k0DNO98X097268@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-01-13 23:24:09 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_ef.c 
  Log:
  Check the right ifnet pointer to see if if_alloc() failed or not in
  ef_clone(); we were testing the original ifnet, not the one allocated.
  
  When aborting ef_clone() due to if_alloc() failing, free the allocated
  efnet structure rather than leaking it.
  
  Noticed by:     Coverity Prevent analysis tool
  MFC after:      3 days
  
  Revision  Changes    Path
  1.38      +3 -1      src/sys/net/if_ef.c



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