From: Alexey Khoroshilov Date: Thu, 16 Aug 2012 20:05:38 +0000 (-0300) Subject: [media] ddbridge: fix error handling in module_init_ddbridge() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~326 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e4a67a37e7c9624b3e8bb9655db2ae45243f3d;p=pandora-kernel.git [media] ddbridge: fix error handling in module_init_ddbridge() If pci_register_driver() failed, resources allocated in ddb_class_create() are leaked. The patch fixes it as well as it replaces -1 with correct error code in ddb_class_create(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed