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

Skip to content
Commit 4089f81f authored by Kenneth Heitke's avatar Kenneth Heitke Committed by Stephen Boyd
Browse files

spmi: Add check for NULL and invalid controller pointer



Replace the BUG_ON() check with a NULL pointer check and verify that
the controller type is set appropriately.  This prevents a system crash
due to invalid input.

Change-Id: I858980ad54ba0d764219049a20b4ca3e9b77f72e
Signed-off-by: default avatarKenneth Heitke <kheitke@codeaurora.org>
parent 207fc900
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