]> git.baikalelectronics.ru Git - kernel.git/commit
9p/trans_virtio: fix hot-unplug
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Mar 2015 01:23:41 +0000 (11:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Mar 2015 05:25:41 +0000 (15:55 +1030)
commitda7f44da12ddb137cf12778b88d5f4e52ac6d190
treeb4175841d94bc9b3aef2e92a46e708e9856eea0e
parent636cce188acc92376f2323e8caae4554bb433b6a
9p/trans_virtio: fix hot-unplug

On device hot-unplug, 9p/virtio currently will kfree channel while
it might still be in use.

Of course, it might stay used forever, so it's an extremely ugly hack,
but it seems better than use-after-free that we have now.

[ Unused variable removed, whitespace cleanup, msg single-lined --RR ]
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
net/9p/trans_virtio.c