[PATCH] ASoC: topology: Add missing memory checks