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)
commit7552ed8a1a810552e16664d7020d61d2b01b9199
tree31c05a1b128915fce283615a0259a69b9edb08bb
parent6d41533433e2eff26005ee39d103948fa65dd891
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