diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ac03c1e5..b2225dae 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -3770,7 +3770,7 @@ static int gr_gk20a_init_map_tiles(struct gk20a *g, struct gr_gk20a *gr) | |||
3770 | } | 3770 | } |
3771 | 3771 | ||
3772 | if (gr->map_tiles == NULL) { | 3772 | if (gr->map_tiles == NULL) { |
3773 | gr->map_tiles = nvgpu_kzalloc(g, num_gpcs * sizeof(u8)); | 3773 | gr->map_tiles = nvgpu_kzalloc(g, map_tile_count * sizeof(u8)); |
3774 | if (gr->map_tiles == NULL) { | 3774 | if (gr->map_tiles == NULL) { |
3775 | ret = -ENOMEM; | 3775 | ret = -ENOMEM; |
3776 | goto clean_up; | 3776 | goto clean_up; |