Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Don't forget to bus_dmamap_unload.



details:   https://anonhg.NetBSD.org/src/rev/5ce226132c5a
branches:  trunk
changeset: 337261:5ce226132c5a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Apr 08 13:47:06 2015 +0000

description:
Don't forget to bus_dmamap_unload.

diffstat:

 sys/dev/pci/viornd.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r cbd7ddf2304a -r 5ce226132c5a sys/dev/pci/viornd.c
--- a/sys/dev/pci/viornd.c      Wed Apr 08 13:45:01 2015 +0000
+++ b/sys/dev/pci/viornd.c      Wed Apr 08 13:47:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viornd.c,v 1.5 2014/11/06 01:42:01 pooka Exp $ */
+/*     $NetBSD: viornd.c,v 1.6 2015/04/08 13:47:06 riastradh Exp $ */
 /*     $OpenBSD: viornd.c,v 1.1 2014/01/21 21:14:58 sf Exp $   */
 
 /*
@@ -205,6 +205,7 @@
        viornd_get(VIORND_BUFSIZE, sc);
        return;
 vio_failed:
+       bus_dmamap_unload(vsc->sc_dmat, sc->sc_dmamap);
 load_failed:
        bus_dmamap_destroy(vsc->sc_dmat, sc->sc_dmamap);
 create_failed:



Home | Main Index | Thread Index | Old Index