[PATCH 1/4] drm/virtio: Fix memory leak during framebuffer destruction.

2018-07-23 Thread Damir Shaikhutdinov
In function virtio_gpufb_create, a virtio_gpu_object is allocated for framebuffer using virtio_gpu_alloc_object. In virtio_gpu_fbdev_destroy, instead of freeing the object, pointer to it is set to NULL. This leads to memory leak during framebuffer destruction, which is reported to kmesg with a mes

[PATCH 1/4] drm/virtio: Fix memory leak during framebuffer destruction.

2018-07-20 Thread Damir Shaikhutdinov
In function virtio_gpufb_create, a virtio_gpu_object is allocated for framebuffer using virtio_gpu_alloc_object. In virtio_gpu_fbdev_destroy, instead of freeing the object, pointer to it is set to NULL. This leads to memory leak during framebuffer destruction, which is reported to kmesg with a mes