virtio: console: prevent use-after-free of port name in port unplug
authorAmit Shah <amit.shah@redhat.com>
Wed, 7 Aug 2013 06:24:17 +0000 (15:54 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 9 Aug 2013 03:32:16 +0000 (13:02 +0930)
Remove the debugfs path before freeing port->name, to prevent a possible
use-after-free.

Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found