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)
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>

No differences found