]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite27a8e9fe0a39d8001092b4f9c78f0229a0da6ff
tree254ccd90d052c96f45bfa1857267997d8d40d5d1
parentec936050d11251780dbab2560a6f88cb9d5018a4
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