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

Skip to content
Commit e460e50d authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

drivers: thermal: Check NULL pointer before using it in thermal stat update



There is a possible chance that some cooling device stats init fails
and later cooling device update or cooling stats sysfs will try to
access stats data for the same cooling device. It may lead to some
unexpected behaviour.

Add a NULL pointer check before accessing thermal cooling device stats
data.

Change-Id: Ieeb84adf0e5d3575ed06b9c64361bbbf902f984e
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 364e8d57
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