summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-07-30 06:25:24 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-07-30 06:25:24 +0000
commitf34f301f42651ae9879010be50d6449bd1044721 (patch)
treebcf4756c1d57298b7072802740707f4eec1d37b0 /sys
parent3c6b5a6f476dba3dae6e174ade65552b550ce300 (diff)
Free the correct buffer list on failure.
From Andrew Thompson at FreeBSD.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_ral.c4
-rw-r--r--sys/dev/usb/if_rum.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index c1bc8f10aa9..323c6b4e30f 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.104 2008/07/21 18:43:19 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.105 2008/07/30 06:25:23 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -492,7 +492,7 @@ ural_alloc_rx_list(struct ural_softc *sc)
return 0;
-fail: ural_free_tx_list(sc);
+fail: ural_free_rx_list(sc);
return error;
}
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index a450be7baee..c9ffc5f0f25 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.74 2008/07/21 18:43:19 damien Exp $ */
+/* $OpenBSD: if_rum.c,v 1.75 2008/07/30 06:25:23 damien Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
@@ -583,7 +583,7 @@ rum_alloc_rx_list(struct rum_softc *sc)
return 0;
-fail: rum_free_tx_list(sc);
+fail: rum_free_rx_list(sc);
return error;
}