From 461b4ecf4da60af63a7c7a7083a5d4375b4597a5 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sat, 30 Jan 2016 00:00:56 +0000 Subject: [PATCH] Always initialize error. Found by joerg. --- sys/arch/arm/nvidia/tegra_drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/nvidia/tegra_drm.c b/sys/arch/arm/nvidia/tegra_drm.c index 2b00effc9653..87f639f9c72f 100644 --- a/sys/arch/arm/nvidia/tegra_drm.c +++ b/sys/arch/arm/nvidia/tegra_drm.c @@ -1,4 +1,4 @@ -/* $NetBSD: tegra_drm.c,v 1.5 2015/12/22 22:10:36 jmcneill Exp $ */ +/* $NetBSD: tegra_drm.c,v 1.6 2016/01/30 00:00:56 riastradh Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tegra_drm.c,v 1.5 2015/12/22 22:10:36 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tegra_drm.c,v 1.6 2016/01/30 00:00:56 riastradh Exp $"); #include #include @@ -350,6 +350,8 @@ tegra_drm_dumb_map_offset(struct drm_file *file_priv, error = drm_gem_create_mmap_offset(&obj->base); if (error) goto done; + } else { + error = 0; } *offset = drm_vma_node_offset_addr(&obj->base.vma_node);