From 38f9f909537ff2afecadff1902896471061a02c1 Mon Sep 17 00:00:00 2001 From: wpaul Date: Tue, 10 Aug 1999 21:12:11 +0000 Subject: Small tweak: remember to free the tx ring data (which is malloc()ed) if we have to bail out of vr_attach(). --- sys/dev/vr/if_vr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/vr') 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; } -- cgit v1.1