mirror of https://github.com/thesofproject/sof.git
Merge pull request #311 from dabekjakub/pipeline_deref_fix
pipeline: fixed possible null dereference
This commit is contained in:
commit
62bae33296
|
@ -724,7 +724,10 @@ void pipeline_cache(struct pipeline *p, struct comp_dev *dev, int cmd)
|
|||
}
|
||||
|
||||
/* execute cache operation on pipeline itself */
|
||||
cache_cmd(p, sizeof(*p));
|
||||
if (cache_cmd)
|
||||
cache_cmd(p, sizeof(*p));
|
||||
else
|
||||
trace_pipe_error("ccN");
|
||||
|
||||
spin_unlock_irq(&p->lock, flags);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue