Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 29160019 authored by Pavel Shved's avatar Pavel Shved Committed by Paul Mundt
Browse files

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: default avatarPavel Shved <shved@ispras.ru>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9845afc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment