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

Skip to content
Commit d36e796c authored by Bhalchandra Gajare's avatar Bhalchandra Gajare
Browse files

ASoC: wcd9330: Fix null pointer access for event callback



The ASoC machine driver provides callback to codec driver to setup
certain settings that are specific to the machine. It is possible that
machine driver does not provide this callback when there are no machine
specific settings. In such cases the callback will be NULL. Make sure to
not access the callback if it is NULL to avoid null pointer dereference.

CRs-fixed: 673401
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
Change-Id: If952e99310c9b633429fe0c803336a393ef0085c
parent 49621277
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