diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-10-09 04:44:46 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-10-09 04:44:46 +0000 |
commit | 3407cc2b327ea2efe0f851d52f8ce9efe3840859 (patch) | |
tree | 770e4573a20948c2f187f1e6ae721607db3f994f /sys/dev/pci/if_lge.c | |
parent | db3316a3a24b2daecd14456774e4f3268e91f065 (diff) |
fix bus_dmamem_alloc() failure case.
Diffstat (limited to 'sys/dev/pci/if_lge.c')
-rw-r--r-- | sys/dev/pci/if_lge.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |