From: Pavel Shved Date: Fri, 17 Jun 2011 16:25:12 +0000 (+0000) Subject: hecubafb: add module_put on error path in hecubafb_probe() X-Git-Tag: v3.0-rc6~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=291600193e5c0c3f0a9af1f23a8076dd7417c02a;p=pandora-kernel.git hecubafb: add module_put on error path in hecubafb_probe() In hecubafb_probe(), after a successful try_module_get, vzalloc may fail and make the hecubafb_probe return, but the module is not put on this error path. This patch adds an exit point that calls module_put in such situation. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Pavel Shved Signed-off-by: Paul Mundt --- Reading git-diff-tree failed