mirror of https://github.com/thesofproject/sof.git
pipeline: fixed possible null dereference
Added null check for possible null dereference. Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
This commit is contained in:
parent
ca704324ef
commit
b6f9963782
|
@ -724,7 +724,10 @@ void pipeline_cache(struct pipeline *p, struct comp_dev *dev, int cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* execute cache operation on pipeline itself */
|
/* 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);
|
spin_unlock_irq(&p->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue