Bug 7622 - dmaengine: ti: edma: handle irq_of_parse_and_map() errors
Summary: dmaengine: ti: edma: handle irq_of_parse_and_map() errors
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-24 10:18 UTC by zhujun
Modified: 2024-08-13 14:03 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhujun cmss_group 2023-11-24 10:18:54 UTC
Zero is not a valid IRQ for in-kernel code and the irq_of_parse_and_map()
function returns zero on error.  So this check for valid IRQs should only
accept values > 0.

Additional info:

社区有patch已经解决
dmaengine: ti: edma: handle irq_of_parse_and_map() errors

commit c53cfe99c2aa9c3c9471febb508ce6c70623745b

Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=c53cfe99c2aa9c3c9471febb508ce6c70623745b

git cherry-pick -s c53cfe99c(with stable-v5.10.201 repo added)
Comment 1 小龙 admin 2023-11-24 10:21:02 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2458
Comment 2 小龙 admin 2024-08-13 14:03:13 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3687