drm/radeon: off by one in check_reg() functions
authorDan Carpenter <error27@gmail.com>
Wed, 27 Jul 2011 09:53:40 +0000 (09:53 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Aug 2011 13:22:10 +0000 (14:22 +0100)
commit884988398f43378a170026184648ce8ff14dcc9f
tree1c22c0d4ab91633a5893e7d7058ada2b8494b58e
parentb8709894f248b569d7a0f32cc5e84fa14f7585f0
drm/radeon: off by one in check_reg() functions

This off by one range check was copy and pasted a couple places.
It's not really harmful, but we should fix it anyway.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_cs.c
drivers/gpu/drm/radeon/r600_cs.c