Bug 219942 - Missing null check in udma_probe
Summary: Missing null check in udma_probe
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 08:54 UTC by henry
Modified: 2025-03-28 08:54 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description henry 2025-03-28 08:54:43 UTC
dma: ti: k3-udma: Add NULL check in udma_probe

devm_kasprintf() can return a NULL pointer on failure, but "uc->name"
returned value in udma_probe is not checked.

Add NULL check in udma_probe, to handle kernel NULL pointer dereference error. This is similar to the commit 050b23d081da.

Note You need to log in before you can comment on or make changes to this bug.