From mboxrd@z Thu Jan 1 00:00:00 1970 From: weiping zhang Subject: [PATCH 0/3] fix cleanup for fail to register_virtio_device Date: Mon, 11 Dec 2017 23:53:53 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: cohuck@redhat.com, mst@redhat.com, jasowang@redhat.com Cc: virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org This series fix the cleanup for the caller of register_virtio_device, the main work is use put_device instead of kfree. 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 | 16 +++++++++------- drivers/remoteproc/remoteproc_virtio.c | 2 +- drivers/virtio/virtio_pci_common.c | 17 +++++++++-------- 3 files changed, 19 insertions(+), 16 deletions(-) -- 2.9.4