Skip to content

Commit c17121b

Browse files
Andrula Songlrgirdwo
authored andcommitted
audio: fix the unsymmetrical order of lock and unlock.
fix the unsymmetrical order of lock and unlock issue in fuunction comp_get_copy_limits_with_lock to avoid IPC tiime out risk. Signed-off-by: Andrula Song <xiaoyuan.song@intel.com>
1 parent 17c6433 commit c17121b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/include/sof/audio/component.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,8 @@ void comp_get_copy_limits_with_lock(struct comp_buffer *source,
844844

845845
comp_get_copy_limits(source_c, sink_c, cl);
846846

847-
buffer_release(source_c);
848847
buffer_release(sink_c);
848+
buffer_release(source_c);
849849
}
850850

851851
/**

0 commit comments

Comments
 (0)