Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Aug 24, 2016
2 parents b5db6c5 + 979cf59 commit a74306f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sound/soc/intel/skylake/skl-sst-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ int snd_skl_get_module_info(struct skl_sst *ctx, u8 *uuid,

uuid_mod = (uuid_le *)uuid;

if (list_empty(&ctx->uuid_list)) {
dev_err(ctx->dev, "Module list is empty\n");
return -EINVAL;
}

list_for_each_entry(module, &ctx->uuid_list, list) {
if (uuid_le_cmp(*uuid_mod, module->uuid) == 0) {
dfw_config->module_id = module->id;
Expand Down
4 changes: 3 additions & 1 deletion sound/soc/intel/skylake/skl.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,10 @@ static int skl_probe(struct pci_dev *pci,

skl->nhlt = skl_nhlt_init(bus->dev);

if (skl->nhlt == NULL)
if (skl->nhlt == NULL) {
err = -ENODEV;
goto out_free;
}

skl_nhlt_update_topology_bin(skl);

Expand Down

0 comments on commit a74306f

Please sign in to comment.