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-cpufreq-signed~77^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efda0ad4aa92439d9244d77a13339e23df5e1dc1;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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed