Skip to content

Commit 8326009

Browse files
committed
ipc4: handler-user: reject invalid basefw module IDs
Only 0th instance of BaseFW module is available. Report an error for any other instance Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>
1 parent 9f26a9b commit 8326009

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ipc/ipc4/handler-user.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,10 @@ __cold static int ipc4_get_large_config_module_instance(struct ipc4_message_requ
10041004
if (!cpu_is_me(dev->ipc_config.core))
10051005
return ipc4_process_on_core(dev->ipc_config.core, false);
10061006
} else {
1007+
/* BaseFW module has only 0th instance */
1008+
if (config.primary.r.instance_id)
1009+
return IPC4_INVALID_RESOURCE_ID;
1010+
10071011
drv = ipc4_get_comp_drv(config.primary.r.module_id);
10081012
}
10091013

0 commit comments

Comments
 (0)