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
broonie committed Sep 29, 2016
2 parents 195dee5 + 61ab0d4 commit 4a1ff03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions sound/soc/intel/atom/sst/sst_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ static void process_fw_async_msg(struct intel_sst_drv *sst_drv_ctx,
"Period elapsed rcvd for pipe id 0x%x\n",
pipe_id);
stream = &sst_drv_ctx->streams[str_id];
/* If stream is dropped, skip processing this message*/
if (stream->status == STREAM_INIT)
break;
if (stream->period_elapsed)
stream->period_elapsed(stream->pcm_substream);
if (stream->compr_cb)
Expand Down
14 changes: 6 additions & 8 deletions sound/soc/intel/atom/sst/sst_pvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,15 @@ int sst_prepare_and_post_msg(struct intel_sst_drv *sst,

if (response) {
ret = sst_wait_timeout(sst, block);
if (ret < 0) {
if (ret < 0)
goto out;
} else if(block->data) {
if (!data)
goto out;
*data = kzalloc(block->size, GFP_KERNEL);
if (!(*data)) {

if (data && block->data) {
*data = kmemdup(block->data, block->size, GFP_KERNEL);
if (!*data) {
ret = -ENOMEM;
goto out;
} else
memcpy(data, (void *) block->data, block->size);
}
}
}
out:
Expand Down

0 comments on commit 4a1ff03

Please sign in to comment.