diff options
-rw-r--r-- | drivers/video/tegra/host/nvhost_syncpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c index 1881716ed428..7581e95c1abb 100644 --- a/drivers/video/tegra/host/nvhost_syncpt.c +++ b/drivers/video/tegra/host/nvhost_syncpt.c @@ -236,7 +236,7 @@ static const char *s_syncpt_names[32] = { const char *nvhost_syncpt_name(u32 id) { - BUG_ON(id > ARRAY_SIZE(s_syncpt_names)); + BUG_ON(id >= ARRAY_SIZE(s_syncpt_names)); return s_syncpt_names[id]; } |