]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01ea6907b50b348a54889f717a27bbd35ca63e35
treeca32ac9414693e0f70b5199ae00bb544a973329b
parente35404b6a7fdc2c954e75f945d2c374d106820d7
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: 48975c47e8ed ("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