Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia initialize allocated gem object memory to 0
details: https://anonhg.NetBSD.org/src/rev/183b9897471e
branches: trunk
changeset: 341675:183b9897471e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Nov 16 21:41:29 2015 +0000
description:
initialize allocated gem object memory to 0
diffstat:
sys/arch/arm/nvidia/tegra_drm_gem.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 91a10356f49a -r 183b9897471e sys/arch/arm/nvidia/tegra_drm_gem.c
--- a/sys/arch/arm/nvidia/tegra_drm_gem.c Mon Nov 16 21:25:34 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_drm_gem.c Mon Nov 16 21:41:29 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_drm_gem.c,v 1.1 2015/11/12 00:43:52 jmcneill Exp $ */
+/* $NetBSD: tegra_drm_gem.c,v 1.2 2015/11/16 21:41:29 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_drm_gem.c,v 1.1 2015/11/12 00:43:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_drm_gem.c,v 1.2 2015/11/16 21:41:29 jmcneill Exp $");
#include <drm/drmP.h>
#include <uvm/uvm.h>
@@ -65,6 +65,8 @@
if (error)
goto destroy;
+ memset(obj->dmap, 0, obj->dmasize);
+
drm_gem_private_object_init(ddev, &obj->base, size);
return obj;
Home |
Main Index |
Thread Index |
Old Index