]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: unbind ttm before destroying node in accel move cleanup
authorBen Skeggs <bskeggs@redhat.com>
Mon, 22 Aug 2011 03:15:04 +0000 (03:15 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Aug 2011 08:35:16 +0000 (09:35 +0100)
commite5698fc1c7a694caf0632621005d2d2c74cc52ec
tree46fb51fd804c47feaac6a9e1862a36b43984f254
parent8ce2f5fbdd92f515d724920ccde4ba6b07c416d2
drm/ttm: unbind ttm before destroying node in accel move cleanup

Nouveau makes the assumption that if a TTM is bound there will be a mm_node
around for it and the backwards ordering here resulted in a use-after-free
on some eviction paths.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_util.c