Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 18:25:57 +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/netnatm natm.c
Message-ID:  <200603171825.k2HIPvlF095460@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-03-17 18:25:57 UTC

  FreeBSD src repository

  Modified files:
    sys/netnatm          natm.c 
  Log:
  Change so_pcb invariants in netnatm, such that netnatm sockets always have
  pcb's allocated:
  
  - Universally ensure (and assert) that so_pcb is not NULL, removing lots
    of checks and error cases.  Don't free the pcb without clearing the
    so_pcb pointer.
  
  - Don't try to free the socket in pru_detach(), since the caller will
    immediately free the socket.
  
  - Do retain the sotryfree() in pru_abort() for now, although eventually
    the caller will do it unconditionally.
  
  Revision  Changes    Path
  1.41      +13 -49    src/sys/netnatm/natm.c



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