]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
virtio: console: fix error handling in init() function
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 1 Sep 2012 19:49:37 +0000 (23:49 +0400)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 01:04:45 +0000 (11:04 +1000)
commit07b851ec0537b6afe5d499702ae3dff42f2414e2
treef6eb868b602fa0b86050e5cf97ef75d08b0f7667
parentcdd5c2c662724dfecb71e472c3902ca5ad01fe65
virtio: console: fix error handling in init() function

If register_virtio_driver() fails, virtio-ports class is not destroyed.
The patch adds error handling of register_virtio_driver().

Found by Linux Driver Verification project (linuxtesting.org).

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