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/ttm Zero ttm_agp objects on creation.
details: https://anonhg.NetBSD.org/src/rev/6a04a856e6fc
branches: trunk
changeset: 331574:6a04a856e6fc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Aug 14 16:50:22 2014 +0000
description:
Zero ttm_agp objects on creation.
diffstat:
sys/external/bsd/drm2/ttm/ttm_agp_backend.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7c07e45e376b -r 6a04a856e6fc sys/external/bsd/drm2/ttm/ttm_agp_backend.c
--- a/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Thu Aug 14 16:47:52 2014 +0000
+++ b/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Thu Aug 14 16:50:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $ */
+/* $NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -57,7 +57,7 @@
{
struct ttm_agp *ttm_agp;
- ttm_agp = kmem_alloc(sizeof(*ttm_agp), KM_SLEEP);
+ ttm_agp = kmem_zalloc(sizeof(*ttm_agp), KM_SLEEP);
ttm_agp->agp = &bridge->abd_sc;
ttm_agp->ttm_dma.ttm.func = &ttm_agp_backend_func;
Home |
Main Index |
Thread Index |
Old Index