From 62ca8315cba6a9903d903aa99568be9cb5460e1b Mon Sep 17 00:00:00 2001 From: damien Date: Wed, 30 Jul 2008 06:25:23 +0000 Subject: [PATCH] Free the correct buffer list on failure. From Andrew Thompson at FreeBSD. --- sys/dev/usb/if_ral.c | 4 ++-- sys/dev/usb/if_rum.c | 4 ++-- 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 @@ -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; } -- 2.20.1