summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/regops_gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
index 11ab7bc3..ceda48b3 100644
--- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Tegra GK20A GPU Debugger Driver Register Ops 2 * Tegra GK20A GPU Debugger Driver Register Ops
3 * 3 *
4 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -403,9 +403,9 @@ int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s,
403 if (gk20a_gpu_is_virtual(dbg_s->pdev)) 403 if (gk20a_gpu_is_virtual(dbg_s->pdev))
404 return -ENOSYS; 404 return -ENOSYS;
405 405
406 ok = g->allow_all || validate_reg_ops(dbg_s, 406 ok = validate_reg_ops(dbg_s,
407 &ctx_rd_count, &ctx_wr_count, 407 &ctx_rd_count, &ctx_wr_count,
408 ops, num_ops); 408 ops, num_ops) || g->allow_all;
409 if (!ok) { 409 if (!ok) {
410 dev_err(dbg_s->dev, "invalid op(s)"); 410 dev_err(dbg_s->dev, "invalid op(s)");
411 err = -EINVAL; 411 err = -EINVAL;