On Saturday, December 24, 2022 1:14 AM, Paolo Bonzini wrote: > On 12/20/22 04:04, Wang, Wei W wrote: > > Another option is to let kvm_io_bus_unregister_dev handle this, and no > > need for callers to make the extra kvm_iodevice_destructor() call. > > This simplifies the usage for callers (e.g. reducing LOCs and no leakages like > this): > > Can you send this as a patch? Thanks! Sure. I can do it. I'm also fine if Sean would be interested in taking over the code (or anything I should do to keep his credits for the original fixing?)