[PATCH 3/3] virtio_pci: document why we defer kfree

2015-01-04 Thread Michael S. Tsirkin
The reason we defer kfree until release function is because it's a general rule for kobjects: kfree of the reference counter itself is only legal in the release function. Previous patch didn't make this clear, document this in code. Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin

[PATCH 3/3] virtio_pci: document why we defer kfree

2015-01-04 Thread Michael S. Tsirkin
The reason we defer kfree until release function is because it's a general rule for kobjects: kfree of the reference counter itself is only legal in the release function. Previous patch didn't make this clear, document this in code. Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin