-
由 Xie Yongji 提交于
mainline inclusion from mainline-v5.13-rc2 commit 17f46f48 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=17f46f488a5d82c5568e6e786cd760bba1c2ee09 -------------------------------- The dev->dev_private might not be allocated if virtio_gpu_pci_quirk() or virtio_gpu_init() failed. In this case, we should avoid the cleanup in virtio_gpu_release(). Signed-off-by: NXie Yongji <xieyongji@bytedance.com> Link: http://patchwork.freedesktop.org/patch/msgid/20210517084913.403-1-xieyongji@bytedance.comSigned-off-by: NGerd Hoffmann <kraxel@redhat.com> Signed-off-by: NBinfeng Wu <wubinfeng@huawei.com>
41167b93