Commit 00e0719a authored by Xie Yongji's avatar Xie Yongji Committed by openeuler-sync-bot
Browse files

drm/virtio: free virtqueues on probe failure

mainline inclusion
from mainline-v5.13-rc2
commit 	058acb33
category: bugfix
bugzilla: https://gitee.com/openeuler/stratovirt/issues/I66GGJ
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.15&id=058acb33d100c5cceab10d2dd388cf9bc0918908



--------------------------------

We should call virtio_gpu_deinit() to free virtqueues when
drm_dev_register() failed.

Signed-off-by: default avatarXie Yongji <xieyongji@bytedance.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210517084913.403-3-xieyongji@bytedance.com


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarBinfeng Wu <wubinfeng@huawei.com>
(cherry picked from commit f102b552)
parent 09bd9002
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment