From: damien Date: Wed, 30 Jul 2008 06:25:23 +0000 (+0000) Subject: Free the correct buffer list on failure. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=62ca8315cba6a9903d903aa99568be9cb5460e1b;p=openbsd Free the correct buffer list on failure. From Andrew Thompson at FreeBSD. --- 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 @@ -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; }