commit | 291600193e5c0c3f0a9af1f23a8076dd7417c02a | [log] [tgz] |
---|---|---|
author | Pavel Shved <shved@ispras.ru> | Fri Jun 17 16:25:12 2011 +0000 |
committer | Paul Mundt <lethal@linux-sh.org> | Fri Jun 24 17:00:39 2011 +0900 |
tree | 94d64fc90e5bd5de69ce4b9e0df0b169db82b544 | |
parent | 9845afc8fa32de145d56c8e69b7900e10371255d [diff] |
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 <shved@ispras.ru> Signed-off-by: Paul Mundt <lethal@linux-sh.org>