Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/drm Free temporary segs on the...
details: https://anonhg.NetBSD.org/src/rev/79bcec9b956d
branches: trunk
changeset: 330816:79bcec9b956d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 22 22:14:22 2014 +0000
description:
Free temporary segs on the way out of bus_dmamap_load_pglist.
diffstat:
sys/external/bsd/drm2/include/drm/bus_dma_hacks.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 1fa591854d11 -r 79bcec9b956d sys/external/bsd/drm2/include/drm/bus_dma_hacks.h
--- a/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Tue Jul 22 20:41:37 2014 +0000
+++ b/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Tue Jul 22 22:14:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma_hacks.h,v 1.5 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: bus_dma_hacks.h,v 1.6 2014/07/22 22:14:22 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -162,12 +162,13 @@
goto fail0;
/* Success! */
- return 0;
+ error = 0;
+ goto out;
fail1: __unused
bus_dmamap_unload(tag, map);
fail0: KASSERT(error);
- kmem_free(segs, (nsegs * sizeof(segs[0])));
+out: kmem_free(segs, (nsegs * sizeof(segs[0])));
return error;
}
Home |
Main Index |
Thread Index |
Old Index