summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 5910c7d9..2fd6f72c 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -1543,7 +1543,7 @@ restore_fe_go_idle:
1543 * we initialize gr->no_of_sm in this function 1543 * we initialize gr->no_of_sm in this function
1544 */ 1544 */
1545 gr->sm_error_states = nvgpu_kzalloc(g, 1545 gr->sm_error_states = nvgpu_kzalloc(g,
1546 sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) 1546 sizeof(struct nvgpu_gr_sm_error_state)
1547 * gr->no_of_sm); 1547 * gr->no_of_sm);
1548 if (!gr->sm_error_states) { 1548 if (!gr->sm_error_states) {
1549 err = -ENOMEM; 1549 err = -ENOMEM;
@@ -4566,7 +4566,7 @@ restore_fe_go_idle:
4566 * we initialize gr->no_of_sm in this function 4566 * we initialize gr->no_of_sm in this function
4567 */ 4567 */
4568 gr->sm_error_states = nvgpu_kzalloc(g, 4568 gr->sm_error_states = nvgpu_kzalloc(g,
4569 sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) * 4569 sizeof(struct nvgpu_gr_sm_error_state) *
4570 gr->no_of_sm); 4570 gr->no_of_sm);
4571 if (!gr->sm_error_states) { 4571 if (!gr->sm_error_states) {
4572 err = -ENOMEM; 4572 err = -ENOMEM;