drivers/gpu/drm/via/via_video.c: fix off by one issue
authorDan Carpenter <error27@gmail.com>
Tue, 27 Apr 2010 21:11:03 +0000 (14:11 -0700)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Apr 2010 08:41:31 +0000 (18:41 +1000)
commit22fb573affe51845622c4763653f60e130f80586
treec3dbab6233d9061e2e184b96978b02f0b2f172fc
parentccb2ad579f910e6146adf4eb3aa50325253ee8c9
drivers/gpu/drm/via/via_video.c: fix off by one issue

"fx->lock" is used as the index in "dev_priv->decoder_queue[fx->lock]"
which is an array of "VIA_NR_XVMC_LOCKS" elements.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/via/via_video.c