Bug 219934 - Missing null check in aspeed_lpc_enable_snoop
Summary: Missing null check in aspeed_lpc_enable_snoop
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Hardware Monitoring (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Jean Delvare
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 08:01 UTC by henry
Modified: 2025-03-28 08:25 UTC (History)
0 users

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


Attachments

Description henry 2025-03-28 08:01:45 UTC
soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop

devm_kasprintf() can return a NULL pointer on failure,but this lpc_snoop->chan[channel].miscdev.name returned value in aspeed_lpc_enable_snoop is not checked.
Add NULL check in aspeed_lpc_enable_snoop, to handle kernel NULL pointer dereference error.

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