Skip to content

lib-manager: check dma_request_channel() success#10926

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:libm-dma
Jun 17, 2026
Merged

lib-manager: check dma_request_channel() success#10926
kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:libm-dma

Conversation

@lyakh

@lyakh lyakh commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

dma_request_channel() can return a negative error code. Check for it before using the returned value as a channel number.

dma_request_channel() can return a negative error code. Check for it
before using the returned value as a channel number.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copilot AI review requested due to automatic review settings June 16, 2026 13:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens lib_manager_dma_init() to correctly handle dma_request_channel() returning a negative error code, instead of treating it as a channel index.

Changes:

  • Add an early-return error check after dma_request_channel() in the library manager DMA initialization path.

Comment thread src/library_manager/lib_manager.c
@kv2019i kv2019i merged commit f810c82 into thesofproject:main Jun 17, 2026
45 checks passed
@lyakh lyakh deleted the libm-dma branch June 17, 2026 08:58
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