[PATCH] drm/virtio: Fix memory leak in virtio_gpu_object_create()

2022-11-09 Thread Xiu Jianfeng
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 --

[PATCH] dma-buf: Add __init annotation to module init func

2022-09-22 Thread Xiu Jianfeng
Add missing __init annotation to module init func. Signed-off-by: Xiu Jianfeng --- drivers/dma-buf/heaps/cma_heap.c| 2 +- drivers/dma-buf/heaps/system_heap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps