Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 13:16:17 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netgraph ng_device.c
Message-ID:  <200407201316.i6KDGHtY094263@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2004-07-20 13:16:17 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_device.c 
  Log:
  In ng_device_newhook():
    - Return meaningful return errorcodes.
    - Free previously allocated connection in error cases.
  
  In ng_device_rcvdata():
    - Return meaningful return errorcodes.
    - Detach mbuf from netgraph item, and free the item before
      doing any other actions that may return from method.
    - Do not call strange malloc() for buffer. [1]
    - In case of any error jump to end, where mbuf is freed.
  
  In ng_device_disconnect():
    - Return meaningful return errorcodes.
    - Free disconnected connection.
  
  style(9) in mentioned above functions:
    - Remove '/* NGD_DEBUG */', when only one line is ifdef'ed.
    - Remove extra braces to easier reading.
    - Add space after comma in function calls.
  
  PR:             kern/41881 (part)
  Reviewed by:    marks
  Approved by:    julian (mentor)
  
  Revision  Changes    Path
  1.11      +38 -38    src/sys/netgraph/ng_device.c



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