[lkml]   [2019]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v8 2/6] virtio-pmem: Add virtio pmem driver
>> 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!



David / dhildenb

 \ /
  Last update: 2019-05-14 11:57    [W:0.049 / U:3.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site