[PATCH v2 1/6] ASoC: topology: Add missing memory checks