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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 707bfb87..6f829282 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -5256,8 +5256,7 @@ static inline bool is_valid_cyclestats_bar0_offset_gk20a(struct gk20a *g,
5256 is_bar0_global_offset_whitelisted_gk20a(g, offset); 5256 is_bar0_global_offset_whitelisted_gk20a(g, offset);
5257 /* resource size check in case there was a problem 5257 /* resource size check in case there was a problem
5258 * with allocating the assumed size of bar0 */ 5258 * with allocating the assumed size of bar0 */
5259 valid = valid && 5259 valid = valid && gk20a_io_valid_reg(g, offset);
5260 offset < resource_size(g->regs);
5261 return valid; 5260 return valid;
5262} 5261}
5263#endif 5262#endif