diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-07-30 00:38:10 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-07-30 00:38:10 +0000 |
commit | 707396b3a56660ef13153b54e4db5d8d6a446bbf (patch) | |
tree | 84a3e4ae1d1f172a6b058c8b6ad763391e096ba7 /sys/dev | |
parent | bbadbad27205273e3abf4e99a9cf9dff7957d57b (diff) | |
download | FreeBSD-src-707396b3a56660ef13153b54e4db5d8d6a446bbf.zip FreeBSD-src-707396b3a56660ef13153b54e4db5d8d6a446bbf.tar.gz |
Free the correct buffer list on failure.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_rum.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/if_ural.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c index 91d9b9c..48b738d 100644 --- a/sys/dev/usb/if_rum.c +++ b/sys/dev/usb/if_rum.c @@ -726,7 +726,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; } diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c index 1205dd1..5415492 100644 --- a/sys/dev/usb/if_ural.c +++ b/sys/dev/usb/if_ural.c @@ -711,7 +711,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; } |