diff options
author | 2008-07-30 06:25:23 +0000 | |
---|---|---|
committer | 2008-07-30 06:25:23 +0000 | |
commit | 62ca8315cba6a9903d903aa99568be9cb5460e1b (patch) | |
tree | dc27473506bb7e4f055b2522df9eb44ce38b472d /sys | |
parent | fix up a few free -> drm_free() cases that were missed before. (diff) | |
download | wireguard-openbsd-62ca8315cba6a9903d903aa99568be9cb5460e1b.tar.xz wireguard-openbsd-62ca8315cba6a9903d903aa99568be9cb5460e1b.zip |
Free the correct buffer list on failure.
From Andrew Thompson at FreeBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_ral.c | 4 | ||||
-rw-r--r-- | 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 <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; } |