From 3407cc2b327ea2efe0f851d52f8ce9efe3840859 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 9 Oct 2005 04:44:46 +0000 Subject: fix bus_dmamem_alloc() failure case. --- sys/dev/pci/if_lge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_lge.c') diff --git a/sys/dev/pci/if_lge.c b/sys/dev/pci/if_lge.c index 3dfc7a6b365..3e00db415cb 100644 --- a/sys/dev/pci/if_lge.c +++ b/sys/dev/pci/if_lge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lge.c,v 1.33 2005/10/09 02:00:57 brad Exp $ */ +/* $OpenBSD: if_lge.c,v 1.34 2005/10/09 04:44:45 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -766,8 +766,7 @@ lge_alloc_jumbo_mem(struct lge_softc *sc) if (bus_dmamem_alloc(sc->sc_dmatag, LGE_JMEM, PAGE_SIZE, 0, &seg, 1, &rseg, BUS_DMA_NOWAIT)) { printf("%s: can't alloc rx buffers\n", sc->sc_dv.dv_xname); - error = ENOBUFS; - goto out; + return (ENOBUFS); } state = 1; -- cgit v1.2.3