Module Name: src
Committed By: jmcneill
Date: Wed May 3 12:38:39 UTC 2017
Modified Files:
src/sys/arch/arm/nvidia: tegra_apbdma.c
Log Message:
tegra_apbdma_acquire: length param is in bytes not cells
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/nvidia/tegra_apbdma.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/nvidia/tegra_apbdma.c
diff -u src/sys/arch/arm/nvidia/tegra_apbdma.c:1.1 src/sys/arch/arm/nvidia/tegra_apbdma.c:1.2
--- src/sys/arch/arm/nvidia/tegra_apbdma.c:1.1 Sat Apr 29 11:01:51 2017
+++ src/sys/arch/arm/nvidia/tegra_apbdma.c Wed May 3 12:38:39 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_apbdma.c,v 1.1 2017/04/29 11:01:51 jmcneill Exp $ */
+/* $NetBSD: tegra_apbdma.c,v 1.2 2017/05/03 12:38:39 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_apbdma.c,v 1.1 2017/04/29 11:01:51 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_apbdma.c,v 1.2 2017/05/03 12:38:39 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -189,7 +189,7 @@ tegra_apbdma_acquire(device_t dev, const
struct tegra_apbdma_chan *ch;
char intrstr[128];
- if (len != 1)
+ if (len != 4)
return NULL;
const u_int n = be32dec(data);