Skip to content

Commit e52e772

Browse files
committed
ipc: Fix typo in error checking
Found a oss-fuzz error I thought I'd fixed being reported again. Turns out the fix had a typo and only fixed half the problem space. Need to check source and sink, not source and source! Signed-off-by: Andy Ross <andyross@google.com>
1 parent b92ba55 commit e52e772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ipc/ipc-helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int ipc_comp_free(struct ipc *ipc, uint32_t comp_id)
291291
return -EINVAL;
292292
}
293293

294-
if (!icd->cd->bsource_list.next || !icd->cd->bsource_list.next) {
294+
if (!icd->cd->bsource_list.next || !icd->cd->bsink_list.next) {
295295
/* Unfortunate: the buffer list node gets initialized
296296
* at the component level and thus can contain NULLs
297297
* (which is an invalid list!) if the component's

0 commit comments

Comments
 (0)