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>
Sat, 15 Jul 2017 09:57:45 +0000 (11:57 +0200)
commita080ec466c3412dcf58cff69d6c05d1e670adc0c
tree80e698cf8de04ee8f921de153736c9af69d685cf
parentfe0bb2ac167b21843d74465e196e9f9ea5852d07
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