Skip to content

Conversation

@wjablon1
Copy link
Contributor

@wjablon1 wjablon1 commented Dec 15, 2025

Code for copying copier_data is ambiguous. A comment suggests that the deep
copy (data structure + variable-length array) is not needed but the copy of
variable-length array is performed afterwards. This change rectifies this by
placing ipc4_copier_module_cfg at the end of copier_data structure as it
contains a variable-length array. This enables single memory allocation and
single, clean 1:1 copy for the complete copier_data with the variable-length
addition.

@sofci
Copy link
Collaborator

sofci commented Dec 15, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tmleman
Copy link
Contributor

tmleman commented Dec 17, 2025

SOFCI TEST

@lgirdwood
Copy link
Member

@wjablon1 there is some red on the CI, can you check. Thanks !

@lgirdwood
Copy link
Member

Jenkins stuck, restart it.

@lgirdwood
Copy link
Member

SOFCI TEST

Code for copying copier_data is ambiguous. A comment suggests that the deep
copy (data structure + variable-length array) is not needed but the copy of
the variable-length array is performed afterwards. This change rectifies
this by placing ipc4_copier_module_cfg at the end of copier_data structure
as it contains the variable-length array. This enables single memory
allocation and single 1:1 copy for the complete copier_data with the
variable-length addition.

Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>
@lgirdwood lgirdwood merged commit 70828dd into thesofproject:main Dec 22, 2025
41 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants