diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-11-09 10:19:05 +0100 |
---|---|---|
committer | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2023-01-02 15:42:25 +0100 |
commit | a764da46cd15f8b40292d2c0b29c4bf9a3e66c7e (patch) | |
tree | e742ea72936900d05ceb95ee736809551e6e9af7 /drivers/gpu/drm/i810 | |
parent | drm/meson: Reduce the FIFO lines held when AFBC is not used (diff) | |
download | linux-a764da46cd15f8b40292d2c0b29c4bf9a3e66c7e.tar.xz linux-a764da46cd15f8b40292d2c0b29c4bf9a3e66c7e.zip |
drm/virtio: Fix memory leak in virtio_gpu_object_create()
The virtio_gpu_object_shmem_init() will alloc memory and save it in
@ents, so when virtio_gpu_array_alloc() fails, this memory should be
freed, this patch fixes it.
Fixes: e7fef0923303 ("drm/virtio: Simplify error handling of virtio_gpu_object_create()")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221109091905.55451-1-xiujianfeng@huawei.com
Diffstat (limited to 'drivers/gpu/drm/i810')
0 files changed, 0 insertions, 0 deletions