From: Alexey Khoroshilov Date: Sat, 1 Sep 2012 19:49:37 +0000 (+0400) Subject: virtio: console: fix error handling in init() function X-Git-Tag: omap-for-v3.7-rc1/fixes-hwmod-clock-signed-v3~5^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e1afc3d82697599ccc8dc8f2fa44ffff5ae329;p=pandora-kernel.git 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 Acked-by: Amit Shah Signed-off-by: Rusty Russell --- Reading git-diff-tree failed