diff options
-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 e8d363e1..0ff20dad 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -5301,7 +5301,7 @@ static inline bool is_valid_cyclestats_bar0_offset_gk20a(struct gk20a *g, | |||
5301 | /* resource size check in case there was a problem | 5301 | /* resource size check in case there was a problem |
5302 | * with allocating the assumed size of bar0 */ | 5302 | * with allocating the assumed size of bar0 */ |
5303 | valid = valid && | 5303 | valid = valid && |
5304 | offset < resource_size(g->reg_mem); | 5304 | offset < resource_size(g->regs); |
5305 | return valid; | 5305 | return valid; |
5306 | } | 5306 | } |
5307 | #endif | 5307 | #endif |