All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] fix cleanup for fail to register_virtio_device
@ 2017-12-12 13:13 weiping zhang
  2017-12-12 13:24 ` [PATCH v2 1/3] virtio_pci: use put_device instead of kfree weiping zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: weiping zhang @ 2017-12-12 13:13 UTC (permalink / raw)
  To: cohuck, mst, jasowang; +Cc: virtualization

This series fix the cleanup for the caller of register_virtio_device,
the main work is use put_device instead of kfree.

V1->V2:
 * virtio_pci: add comments for the reason use put_device
 * virtio vop: also use put_device in in _vop_remove_device()

weiping zhang (3):
  virtio_pci: use put_device instead of kfree
  virtio: use put_device instead of kfree
  virtio: put reference count of virtio_device.dev

 drivers/misc/mic/vop/vop_main.c        | 18 ++++++++++--------
 drivers/remoteproc/remoteproc_virtio.c |  2 +-
 drivers/virtio/virtio_pci_common.c     | 17 +++++++++--------
 3 files changed, 20 insertions(+), 17 deletions(-)

-- 
2.9.4

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-16 22:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12 13:13 [PATCH v2 0/3] fix cleanup for fail to register_virtio_device weiping zhang
2017-12-12 13:24 ` [PATCH v2 1/3] virtio_pci: use put_device instead of kfree weiping zhang
2017-12-14 19:13   ` Michael S. Tsirkin
2017-12-15  1:38     ` weiping zhang
2017-12-15  1:48       ` Michael S. Tsirkin
2017-12-15 12:32         ` Cornelia Huck
2017-12-15 12:21     ` Cornelia Huck
2017-12-16 22:13       ` Michael S. Tsirkin
2017-12-12 13:24 ` [PATCH v2 2/3] virtio: " weiping zhang
2017-12-13  8:27   ` Cornelia Huck
2017-12-12 13:25 ` [PATCH v2 3/3] virtio: put reference count of virtio_device.dev weiping zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.