Merge "hal : Validate input to fix NULL check error" into audio-userspace.lnx.2.2-dev