Skip to content

fix cleanup for fail to register_virtio_device

weiping zhang virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio_pci: use put_device instead of kfreedrivers/virtio/virtio_pci_common.c+9 -86 replies
2/3virtio: use put_device instead of kfreedrivers/misc/mic/vop/vop_main.c+10 -81 reply
3/3virtio: put reference count of virtio_device.devdrivers/remoteproc/remoteproc_virtio.c+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchCornelia Huck
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] fix cleanup for fail to register_virtio_device

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(-)
Signature · 1 line
2.9.4