]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-gpu: don't free things on ttm_bo_init failure
authorDave Airlie <airlied@redhat.com>
Tue, 13 Oct 2015 06:55:48 +0000 (16:55 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 16 Oct 2015 08:44:01 +0000 (10:44 +0200)
commitc3bd35db31759f9b86d494fd9d6476ac7aa56916
tree31c05a1b128915fce283615a0259a69b9edb08bb
parentebc154a961994637fde8e6a52b88b72001fb8962
virtio-gpu: don't free things on ttm_bo_init failure

ttm_bo_init will call the destroy callback which will do all
this, this was causing a double free.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/virtio/virtgpu_object.c