diff options
author | Jubeom Kim <jubeomk@nvidia.com> | 2011-08-09 18:22:24 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-09 16:09:42 -0700 |
commit | 103b8b00262e8d47d81cbfd65e86f9e0f9540e03 (patch) | |
tree | 8f6446b21e8505770dfd7eb72365521cfd7915f0 | |
parent | 45eca2033505d7049dcde1c29d48049c443aad11 (diff) |
tegra: host: fix the compare statement.
Change-Id: Ie1c1aaf2a994193897fc8cc88768e40fb8479b6b
Reviewed-on: http://git-master/r/46028
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | drivers/video/tegra/host/t20/syncpt_t20.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/t20/syncpt_t20.c b/drivers/video/tegra/host/t20/syncpt_t20.c index fe832917c856..ade896e6299e 100644 --- a/drivers/video/tegra/host/t20/syncpt_t20.c +++ b/drivers/video/tegra/host/t20/syncpt_t20.c @@ -127,7 +127,7 @@ static int t20_syncpt_wait_check(struct nvhost_syncpt *sp, while (wait != waitend) { u32 syncpt, override; - BUG_ON(wait->syncpt_id > NV_HOST1X_SYNCPT_NB_PTS); + BUG_ON(wait->syncpt_id >= NV_HOST1X_SYNCPT_NB_PTS); syncpt = atomic_read(&sp->min_val[wait->syncpt_id]); if (nvhost_syncpt_wrapping_comparison(syncpt, wait->thresh)) { @@ -171,7 +171,7 @@ static const char *s_syncpt_names[32] = { static const char *t20_syncpt_name(struct nvhost_syncpt *s, u32 id) { - BUG_ON(id > ARRAY_SIZE(s_syncpt_names)); + BUG_ON(id >= ARRAY_SIZE(s_syncpt_names)); return s_syncpt_names[id]; } |