Skip to content
Commit a1eb03f5 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_pci: document why we defer kfree



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: stable@vger.kernel.org
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 63bd62a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment