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

Commit c0783f52 authored by Rajeev Nandan's avatar Rajeev Nandan Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: dsi: Do not call devm_clk_put() with invalid clk



Do not call devm_clk_put() if devm_clk_get() was failed for
a given clk. The devm_clk_put() does not check for the validity
of the input clk argumnet, and can cause NULL pointer dereference
or some other errors if called with invalid clk argument.

Change-Id: Ie626a5afed52a146ebd1a2092c7d9db9226dbfe0
Signed-off-by: default avatarRajeev Nandan <rajeevny@codeaurora.org>
parent 4b054fac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment