drm/virtio: don't leak bo on drm_gem_object_init failure
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Apr 2017 15:59:40 +0000 (17:59 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Apr 2017 11:29:17 +0000 (13:29 +0200)
commit385aee965b4e4c36551c362a334378d2985b722a
tree78e2ea33fc9a319d67b9f6dae5487a8c35529d5f
parente20c29aa722a90f3b8092b340362eabe488dbfc4
drm/virtio: don't leak bo on drm_gem_object_init failure

Reported-by: 李强 <liqiang6-s@360.cn>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170406155941.458-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_object.c