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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jul 2017 13:01:03 +0000 (15:01 +0200)
commit366d9207d9e002bf1a6d9da13a7f8f85b8a40c0b
tree437919da76e1c3b97eb66e3f8b48ce43b6d6cbbb
parentb96976c1a87bc48ddd5f32566c682cd376e4b785
drm/virtio: don't leak bo on drm_gem_object_init failure

commit 385aee965b4e4c36551c362a334378d2985b722a upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/virtio/virtgpu_object.c