drm/nouveau/gem: off by one bugs in nouveau_gem_pushbuf_reloc_apply()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 3 Jul 2018 12:30:56 +0000 (15:30 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 07:59:58 +0000 (17:59 +1000)
commit7f073d011f93e92d4d225526b9ab6b8b0bbd6613
treeca32ac9414693e0f70b5199ae00bb544a973329b
parentdf0c97e2c7d06b4f3cc5855604af79fd1a964619
drm/nouveau/gem: off by one bugs in nouveau_gem_pushbuf_reloc_apply()

The bo array has req->nr_buffers elements so the > should be >= so we
don't read beyond the end of the array.

Fixes: a1606a9596e5 ("drm/nouveau: new gem pushbuf interface, bump to 0.0.16")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c