For some platforms manifest data may not be defined, thus the private
data would not be defined as well.
So check the size of private data and proceed only if it is valid.
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
struct skl *skl = ebus_to_skl(ebus);
int ret = 0;
+ /* proceed only if we have private data defined */
+ if (manifest->priv.size == 0)
+ return 0;
+
minfo = &skl->skl_sst->manifest;
skl_tplg_get_manifest_data(manifest, bus->dev, minfo);