Thread (26 messages) 26 messages, 4 authors, 2019-05-14

Re: [PATCH v8 2/6] virtio-pmem: Add virtio pmem driver

From: David Hildenbrand <hidden>
Date: 2019-05-14 09:57:28
Also in: kvm, linux-acpi, linux-fsdevel, linux-xfs, lkml, nvdimm, qemu-devel

quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help