cvs commit: src/sys/kern uipc_socket.c

Andre Oppermann andre at FreeBSD.org
Sat Oct 23 12:06:43 PDT 2004


andre       2004-10-23 19:06:43 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
  Log:
  socreate() does an early abort if either the protocol cannot be found,
  or pru_attach is NULL.  With loadable protocols the SPACER dummy protocols
  have valid function pointers for all methods to functions returning just
  EOPNOTSUPP.  Thus the early abort check would not detect immediately that
  attach is not supported for this protocol.  Instead it would correctly
  get the EOPNOTSUPP error later on when it calls the protocol specific
  attach function.
  
  Add testing against the pru_attach_notsupp() function pointer to the
  early abort check as well.
  
  Revision  Changes    Path
  1.215     +2 -1      src/sys/kern/uipc_socket.c


More information about the cvs-src mailing list