summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ral.c
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/dev/usb/if_ral.c
parent3c6b5a6f476dba3dae6e174ade65552b550ce300 (diff)
Free the correct buffer list on failure.
From Andrew Thompson at FreeBSD.
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r--sys/dev/usb/if_ral.c4
1 files changed, 2 insertions, 2 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;
}