ASoC: wcd9320: 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.
Change-Id: Ibd9aeb1157ac3b44525ba5ce2562c02981a88f51
CRs-fixed: 673401
Signed-off-by:
Bhalchandra Gajare <gajare@codeaurora.org>
Loading
Please register or sign in to comment