summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2018-07-11 01:18:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-09 05:55:43 -0400
commit3a3edd0e4fe9e2c6e7c5cba71805b2abce2eb474 (patch)
tree786c83ad29b3ebaaf609807abbebb584d5788b27
parentdb7bb6548b6f3c9da0f40a87ccbb9233c761c598 (diff)
gpu: nvgpu: handle error return for exec_reg_ops failure.
The error returned from the execution of exec_reg_ops was ignored leading to not propagating the error values to the caller methods. This patch handles the error occurence in the exec_reg_ops call. Bug 2245743 Change-Id: I0d696c116fc1b2fce0e14ac7a05e1d85b5d18129 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1775818 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/os/linux/ioctl_dbg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c
index ad4dfc0e..b2c7a362 100644
--- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c
+++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c
@@ -938,6 +938,10 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
938 err = g->ops.dbg_session_ops.exec_reg_ops( 938 err = g->ops.dbg_session_ops.exec_reg_ops(
939 dbg_s, g->dbg_regops_tmp_buf, num_ops); 939 dbg_s, g->dbg_regops_tmp_buf, num_ops);
940 940
941 if (err) {
942 break;
943 }
944
941 err = nvgpu_get_regops_data_linux(g->dbg_regops_tmp_buf, 945 err = nvgpu_get_regops_data_linux(g->dbg_regops_tmp_buf,
942 linux_fragment, num_ops); 946 linux_fragment, num_ops);
943 947