From 2bacad9d634c0818fb86a2a306d977da13b5814a Mon Sep 17 00:00:00 2001 From: Serhiy Katsyuba Date: Thu, 14 May 2026 20:10:55 +0200 Subject: [PATCH 1/2] ipc4: remove unnecessary code icd is NULL by the time rfree(icd) is called, hence rfree(icd) can be removed. Signed-off-by: Serhiy Katsyuba --- src/ipc/ipc4/helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index a81a75312f13..d7e9b5ff6841 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -1271,7 +1271,6 @@ __cold static int ipc4_add_comp_dev(struct comp_dev *dev) sizeof(struct ipc_comp_dev)); if (!icd) { tr_err(&ipc_tr, "alloc failed"); - rfree(icd); return IPC4_OUT_OF_MEMORY; } From 6b8a356fbc9e1844d6c030cb9a5c01d16cdbd23f Mon Sep 17 00:00:00 2001 From: Serhiy Katsyuba Date: Thu, 14 May 2026 20:17:27 +0200 Subject: [PATCH 2/2] ipc4: fix minor typo Fix two switched letters in SOF_IPC4_INVALID_RESOURCE_EVENT_TYPE declaration. Signed-off-by: Serhiy Katsyuba --- src/include/ipc4/notification.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/ipc4/notification.h b/src/include/ipc4/notification.h index f8bf5d07dd99..614a926d16ad 100644 --- a/src/include/ipc4/notification.h +++ b/src/include/ipc4/notification.h @@ -88,7 +88,7 @@ enum sof_ipc4_resource_event_type { /* SNDW debug notification e.g. external VAD detected */ SOF_IPC4_SNDW_DEBUG_INFO = 18, /* Invalid type */ - SOF_IPC4_INVALID_RESORUCE_EVENT_TYPE = 19, + SOF_IPC4_INVALID_RESOURCE_EVENT_TYPE = 19, }; /* Resource Type - source of the event */