ASoC: msm8226: Avoid possible NULL pointer dereference
If memory allocation fails returning a NULL pointer,
the current code will skip to an error handling section
where the NULL pointer will get dereferenced. The
change skips the error handling and exits immediately
from the function.
CRs-Fixed: 628857
Change-Id: Ic14377ec387eeb7f227f1f0abffb64737b0a2654
Signed-off-by:
Aravind Kumar <akumark@codeaurora.org>
Loading
Please register or sign in to comment