Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2004 19:06:43 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_socket.c
Message-ID:  <200410231906.i9NJ6h8q017495@repoman.freebsd.org>

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



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