cvs commit: src/sys/net if_ef.c

Robert Watson rwatson at FreeBSD.org
Fri Jan 13 15:24:10 PST 2006


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


More information about the cvs-all mailing list