diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 4f897b97..d24b8bf7 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -3473,6 +3473,8 @@ static int gr_gk20a_init_gr_config(struct gk20a *g, struct gr_gk20a *gr) | |||
3473 | gr->sm_to_cluster = nvgpu_kzalloc(g, gr->gpc_count * | 3473 | gr->sm_to_cluster = nvgpu_kzalloc(g, gr->gpc_count * |
3474 | gr->max_tpc_per_gpc_count * | 3474 | gr->max_tpc_per_gpc_count * |
3475 | sm_per_tpc * sizeof(struct sm_info)); | 3475 | sm_per_tpc * sizeof(struct sm_info)); |
3476 | if (!gr->sm_to_cluster) | ||
3477 | goto clean_up; | ||
3476 | } else { | 3478 | } else { |
3477 | memset(gr->sm_to_cluster, 0, gr->gpc_count * | 3479 | memset(gr->sm_to_cluster, 0, gr->gpc_count * |
3478 | gr->max_tpc_per_gpc_count * | 3480 | gr->max_tpc_per_gpc_count * |