diff options
author | BK Kim <bkk@nvidia.com> | 2011-07-04 14:04:55 +0900 |
---|---|---|
committer | Manish Tuteja <mtuteja@nvidia.com> | 2011-07-07 07:51:37 -0700 |
commit | c0b38d4ea93a7c50d474b4892643cf8a2e0d49c7 (patch) | |
tree | 3025a5cb6be14c5bb22dbf349e765e061595b6ab /drivers | |
parent | b333ee2704eb1d62ae6301e5da60ae4af268b586 (diff) |
nvrm: wrong comparision to trigger BUG_ON()
BUG_ON() function has wrong comparision.
the comparision should be '>='. (not '>')
Change-Id: I39453cc02615236b52aa04be076184da35df8e94
Reviewed-on: http://git-master/r/39503
Reviewed-by: BK Kim <bkk@nvidia.com>
Tested-by: BK Kim <bkk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-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]; } |