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

Skip to content
Commit 00d28301 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

leds: qpnp-flash-v2: fix a possible NULL pointer access



qpnp_flash_led_prepare() is a global function used by clients
like camera flash driver. Add a check to validate the trigger
pointer before using it to obtain LED class device.

Change-Id: I72c0690c13629cb3dd2ef6b9fd084835e58aa410
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 9862ec5a
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