|
From: | David Hildenbrand |
Subject: | Re: [Qemu-devel] [PATCH v8 2/6] virtio-pmem: Add virtio pmem driver |
Date: | Tue, 14 May 2019 11:57:05 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
>> >> I think you should do the same here, vdev->priv is allocated in >> virtio_pmem_probe. >> >> But maybe I am missing something important here :) > > Because virtio_balloon use "kzalloc" for allocation and needs to be freed. > But virtio pmem uses "devm_kzalloc" which takes care of automatically > deleting > the device memory when associated device is detached. Hehe, thanks, that was the part that I was missing! -- Thanks, David / dhildenb
[Prev in Thread] | Current Thread | [Next in Thread] |