summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-08-10 21:12:11 +0000
committerwpaul <wpaul@FreeBSD.org>1999-08-10 21:12:11 +0000
commit38f9f909537ff2afecadff1902896471061a02c1 (patch)
treea5b8937d0c541a2d1a877bb6228a6baa52cdf7be /sys/dev/vr
parent6a2207962296b0bb1511d70a21840c049ea9d2de (diff)
downloadFreeBSD-src-38f9f909537ff2afecadff1902896471061a02c1.zip
FreeBSD-src-38f9f909537ff2afecadff1902896471061a02c1.tar.gz
Small tweak: remember to free the tx ring data (which is malloc()ed) if
we have to bail out of vr_attach().
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index 6e78de4..2f91c23 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_vr.c,v 1.13 1999/07/06 19:23:31 des Exp $
+ * $Id: if_vr.c,v 1.14 1999/08/10 17:15:10 wpaul Exp $
*/
/*
@@ -100,7 +100,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_vr.c,v 1.13 1999/07/06 19:23:31 des Exp $";
+ "$Id: if_vr.c,v 1.14 1999/08/10 17:15:10 wpaul Exp $";
#endif
/*
@@ -1132,6 +1132,7 @@ static int vr_attach(dev)
bus_teardown_intr(dev, sc->vr_irq, sc->vr_intrhand);
bus_release_resource(dev, SYS_RES_IRQ, 0, sc->vr_irq);
bus_release_resource(dev, VR_RES, VR_RID, sc->vr_res);
+ free(sc->vr_ldata_ptr, M_DEVBUF);
error = ENXIO;
goto fail;
}
OpenPOWER on IntegriCloud