Re: [PATCH v2] virtio-dmabuf: Ensure UUID persistence for hash table insertion

2024-11-08 Thread Stefano Garzarella
On Thu, Nov 07, 2024 at 07:00:31PM +0100, Dorinda Bassey wrote: In `virtio_add_resource` function, the UUID used as a key for `g_hash_table_insert` was temporary, which could lead to invalid lookups when accessed later. This patch ensures that the UUID remains valid by duplicating it into a newly

[PATCH v2] virtio-dmabuf: Ensure UUID persistence for hash table insertion

2024-11-07 Thread Dorinda Bassey
In `virtio_add_resource` function, the UUID used as a key for `g_hash_table_insert` was temporary, which could lead to invalid lookups when accessed later. This patch ensures that the UUID remains valid by duplicating it into a newly allocated memory space. The value is then inserted into the hash