asoc: return when memory allocation fails
Return with ENOMEM error when memory allocation fails to avoid
NULL pointer access failure.
Add NULL check before accessing dai driver pointer.
CRs-Fixed: 2296013
Change-Id: I1c513d6550587216d338957b07c4b72475709f44
Signed-off-by:
Vignesh Kulothungan <vigneshk@codeaurora.org>
Loading
Please register or sign in to comment