]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Keep RAMIN heap within the channel.
authorYounes Manton <younes.m@gmail.com>
Tue, 22 Nov 2011 19:58:31 +0000 (14:58 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 30 Nov 2011 13:40:52 +0000 (23:40 +1000)
commit3024f62a72604419c5f95e8586c1650642c4d573
tree97b09f24217d9042d87f39359a0536bef4766a76
parent3137e3ef2a63fe8ed7bf3d5453827f84e8ef221a
drm/nouveau: Keep RAMIN heap within the channel.

The entire RAMIN is allocated to be 'size', but the heap is
specified as 'base' + 'size' inside RAMIN, so it will overflow
past RAMIN by 'base' bytes on NV50+ and clobber other allocatons
unless it's size is adjusted.

Signed-off-by: Younes Manton <younes.m@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_object.c