drm/nouveau/ltcg: fix allocating memory as free
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 12 Aug 2013 10:41:34 +0000 (12:41 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Aug 2013 01:35:53 +0000 (11:35 +1000)
commit18902bbf06a93ea497be2f177a6323ed9e5f30be
tree254ccd90d052c96f45bfa1857267997d8d40d5d1
parent52f9a4d71b5ba980ea72013191e907127bc44eeb
drm/nouveau/ltcg: fix allocating memory as free

Allocating type=0 marks the memory as free. This allows the ltcg memory
to be allocated twice.

Add a BUG_ON in core/mm.c to prevent this ever happening again.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/mm.c
drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c