]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Reference counting portdev structs is not needed
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 13:08:30 +0000 (18:38 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:03 +0000 (17:44 +1030)
commit6cec651ed3e5f0964c2caa29126af3e58d241bc7
tree375eed8979d6f4c77d5846af89490f624e714db6
parent438617bcb7901b295134537278021963309bbd0f
virtio: console: Reference counting portdev structs is not needed

Explain in a comment why there's no need to reference-count the portdev
struct: when a device is yanked out, we can't do anything more with it
anyway so just give up doing anything more with the data or the vqs and
exit cleanly.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c