android_kernel_google_msm/drivers/virtio
Michael S. Tsirkin 39930a5de9 virtio_pci: document why we defer kfree
commit a1eb03f546d651a8f39c7d0692b1f7f5b4e7e3cd upstream.

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.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
[lizf: Backported to 3.4: adjust filename]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-04-14 17:33:50 +08:00
..
config.c
Kconfig
Makefile
virtio.c
virtio_balloon.c
virtio_mmio.c
virtio_pci.c virtio_pci: document why we defer kfree 2015-04-14 17:33:50 +08:00
virtio_ring.c