]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Check if portdev is valid in send_control_msg()
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 12:41:42 +0000 (18:11 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:00 +0000 (17:44 +1030)
commit81b308779c913527884dd3f8cc8d33e2d1c9b4d9
treed026b868f47f335e70ddb13575393de125dcd3be
parent27b94c1a0346a8004676360fb7a5c9a1ad6e4516
virtio: console: Check if portdev is valid in send_control_msg()

A portdev may have been hot-unplugged while a port was open()ed.  Skip
sending control messages when the portdev isn't valid.

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