diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2012-09-01 23:49:37 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-05 13:44:04 -0700 |
commit | efda0ad4aa92439d9244d77a13339e23df5e1dc1 (patch) | |
tree | 5fe8307deb2c87e2d00d2819d73ef2fc2cb5b3bb /drivers/misc | |
parent | 9a32bb39d6a48d435135695763e5e4a06652eeda (diff) | |
download | op-kernel-dev-efda0ad4aa92439d9244d77a13339e23df5e1dc1.zip op-kernel-dev-efda0ad4aa92439d9244d77a13339e23df5e1dc1.tar.gz |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions