diff options
author | dmlb <dmlb@FreeBSD.org> | 2000-04-04 06:43:30 +0000 |
---|---|---|
committer | dmlb <dmlb@FreeBSD.org> | 2000-04-04 06:43:30 +0000 |
commit | 03f70e94d0d142d1ea8f8f3093b706c71e60a6a1 (patch) | |
tree | 305536a9bcf993285b6a80ffbca1bc76735fcbb4 /sys/dev/ray | |
parent | 7a4fd4ca06b52312efb0de024c9eb1af461c1b29 (diff) | |
download | FreeBSD-src-03f70e94d0d142d1ea8f8f3093b706c71e60a6a1.zip FreeBSD-src-03f70e94d0d142d1ea8f8f3093b706c71e60a6a1.tar.gz |
Fix mbuf leaking - duh!
Diffstat (limited to 'sys/dev/ray')
-rw-r--r-- | sys/dev/ray/if_ray.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index 2239e61..df8c9a7 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ray.c,v 1.15 2000/03/21 14:39:36 dmlb Exp $ + * $Id: if_ray.c,v 1.16 2000/03/31 20:12:30 dmlb Exp $ * */ @@ -189,11 +189,13 @@ * antenna not used yet * antenna tx side - done * not tested! + * shutdown - done + * the driver seems to do the right thing for plugging and unplugging + * cards + * apm/resume - ignore + * apm+pccard is borken for 3.x - no one knows how to do it anymore * - * shutdown * _reset - check where needed - * apm - * resume * faster TX routine * more translations * infrastructure mode - maybe need some of the old stuff for checking? @@ -1579,7 +1581,8 @@ ray_start_sc(sc) sc->unit, sc->translation); RAY_CCS_FREE(sc, ccs); ifp->if_oerrors++; - m0 = m_free(m0); + m_freem(m0); + m0 = NULL; return; } @@ -1635,7 +1638,7 @@ ray_start_sc(sc) ifp->if_opackets++; ifp->if_flags |= IFF_OACTIVE; RAY_ECF_START_CMD(sc); - m_free(m0); + m_freem(m0); return; } |